RAG Isn't a Vector Search Problem
softwaredoug.com·3d·
Discuss: Hacker News
🔍Semantic Search
Preview
Report Post

You don’t need embeddings to do RAG. In fact, off-the-shelf, vector search can be actively harmful. It’s the wrong lens to think about the problem.

We got into this vector mess because RAG, at first blush, looks like a question answering system. The user asks the AI a question. It understands and responds in natural language. So, naturally, the search behind the AI should take questions and respond with answers.

In this line of thinking, we should be able to “ask” the vector database a free-form question, encoding a question like

What is the capital of France?

into an embedding…

…we find, in our vector index, the most similar vector, corresponding to:

Answer: Paris is the capital and largest city of France, with an estimated city population of 2,048,472 in an area of 1…

Similar Posts

Loading similar posts...