ChatGPT on YOUR data

Add additional value to your data with OpenAI embedded in your database. Build a Q&A bot to answer questions in your website, application, documentation or knowledge base.

Highly tuneable

Fully-featured database

Generous free tier

Easily integrate into your product

Step 1: Load your data into Xata

You can import from CSV or use our Javascript, Typescript, or Python SDKs to populate the data. Our spreadsheet-like UI makes it easy to review and edit your database.

Screenshot showing the Xata import CSV UI
Step 2: Call an API and get results

With a simple API call, ChatGPT will be answering questions using your data as context. You can provide your own rules to improve the results.

Screenshot showing the Xata Ask API call.
Step 3: Tune the experience

The search step is essential for getting the best results. The better the search, the better the context ChatGPT has for your questions. You can use our UI to tune the search experience by configuring column weights and value boosters.

Screenshot showing the Xata UI search tuning experience

How it works

Context through search

The first phase is search. Xata supports both keyword and semantic search. When using keyword search, the OpenAI completion model is used to generate the keywords based on the question. When using semantic search, we find the relevant documents using vector similarity.

Rules for boundaries

The top results are provided as context and rules are then applied to the model, sending the resulting prompt to the OpenAI GPT API for a response. You can send your own custom rules to the model to ensure that the responses are relevant to your use case.

Loved by builders

When I started Vercel and Next.js, I dreamt of a data layer that’d be friendly for devs and non-devs alike. It’s finally here: Xata delivers on a great developer experience and a gorgeous admin UX.
Guillermo Rauch profile picture

Guillermo RauchFounder & CEO, Vercel

xata is mind blowing 🤯
Zeno Rocha twitter avatar

Zeno Rocha@zenorocha

I’m working on some demos for AssemblyLift and for one of them I thought I’d try out the @xata beta. SO slick — it’s everything I always personally wanted DynamoDB to be basically. Nice common-sense API was easy to work with from as well 👌🏻
@dotxlem twitter avatar

Dan Cook@dotxlem

Xata is a critical step forward in the evolution of Cloud databases services; it is a serverless database that integrates analytics and free-text search. As a result, Xata makes a wide range of applications really easy to build.
Neha Narkhede profile picture

Neha NarkhedeCo-Founder, Confluent

Just got some pretty sweet beta access to @xata! Looking forward to testing things out. From the intro videos it looks sort of comparable to working with Prisma+Planetscale except that it seems remarkably fast, which will be a breath of fresh air if it that's the case.
@copleykj twitter avatar

Kelly Copley@copleykj

I switched to using @xata exclusively lately and forgot how it is to live without a type safe data layer. Xata does it out of the box but I can clearly see where TRPC would be useful for cases like prisma or supabase!
@GuiBibeau twitter avatar

Gui Bibeau@GuiBibeau

Thank you! Fuzzy search is the best 🤩
@raae twitter avatar

Benedicte (Queen) Raae 👑@raae

Is this a spreadsheet? Is it a database? Or is it what you’ve been looking for? A first look @xata
@james_r_perkins twitter avatar

James Perkins@james_r_perkins

Been playing around with @xata after watching a Next.js conference talk by @TejasKumar_. It seems exactly like what I've wanted from a database for someone who's front-end focused. Simple/minimal, fast, and straightforward docs. Is it a SQL database under the hood?
@scotty529 twitter avatar

Scott Schindler@scotty529

Frequently Asked Questions

How does the pricing work?

If you are on the Xata free tier, you get 250 questions/month for free. You get 250 questions/month for each Xata unit you purchase. To see details on the Xata units, please visit our pricing page.

Can I provide my own OpenAI API Key?

Yes, although currently not on our standard plans. Please contact us to discuss your needs.

Where can I find a code sample?

Our examples repo contains a sample application that demonstrates using the API on several databases.

Where can I learn more?

This YouTube video walks you through how we have used the Xata Ask API to add a chat-bot to our own documentation.

Grow with Xata

Get started in production with our generous free tier, and scale as you grow. We’ll be right there with you.