against the documentation to find the content that is most relevant to the question asked by the user. • Create a prompt for the ChatGPT api with that content • Steam back the result as is
with the personality of a pirate” • “Answer in german” • “Format the answer in Markdown” • “If the answer to the question is not found in the provided context, do not answer it. It’s very important that you only answer questions from the provided context. Tell the user that you don’t have this information”
use ChatGPT for it: • Use the provided keywords to run a free-text-search and pick the top results • Take the top 3 results • If the result is bigger than the context, use the search “highlights” to select parts of the pages Extract keywords for a search query from the text provided. Add synonyms for words where a more common one exists.
into paragraphs, and compute embeddings for each • Compute embeddings for the question • Use cosine similarity search • Add up top results until the context is filled
How do I install the Xata CLI? ✅ ✅ Vector (more complete) How do you use Xata with Deno? ✅ ❌ Keyword How can I import a CSV file with custom column types? ✅ ✅ Keyword (more complete) How can I filter a table named Users by the email column? ❌ ✅ Vector What is Xata? ✅ ✅ Draw Result: draw More details: https://xata.io/blog/keyword-vs-semantic-search-chatgpt