Multi-Query Retrieval Strategies
Improve retrieval recall by generating multiple perspectives of a user's query and combining results from diverse searches.
Boosting RAG with Multi-Query
Sometimes, a single search query isn't enough to find all the relevant information. Multi-query retrieval is a technique that helps your RAG system cast a wider net.
It generates several different versions of your original question. This helps ensure you don't miss important context, leading to more comprehensive answers.
Why One Query Isn't Enough
Imagine asking "What are the benefits of RAG?". A single search might only pick up documents directly matching those exact words. This can limit the context available to your LLM.
- It might miss documents using terms like "advantages of RAG" or "why use RAG".
- It could also miss related concepts that provide crucial background.
This limitation can lead to incomplete or less accurate answers from the LLM.
All lessons in this course
- Multi-Query Retrieval Strategies
- Contextual Compression with LLMs
- Hybrid Search and Re-ranking
- Parent Document and Sentence-Window Retrieval