Advanced RAG 06: Exploring Query Rewriting
A key technique for aligning the semantics of queries and documents
16 min readMar 4, 2024
In Retrieval Augmented Generation(RAG), we often encounter issues with user’s original queries, such as inaccurate wording or lack of semantic information. For instance, a query like “The NBA champion of 2020 is the Los Angeles Lakers! Tell me what is langchain framework?” could yield incorrect or unanswerable responses from the LLM if searched directly.