query rewriting
Turning a user's message into a better search query before retrieval, for example making a follow-up question standalone.
In more detail
A follow-up such as "and on the annual plan?" retrieves nothing useful on its own. A model call can rewrite it using the conversation, and must keep codes and product terms exactly as written.
Related terms
- retrieval-augmented generation — Answering a question by first retrieving relevant passages from your own documents and adding them to the prompt, so the model answers from them.
- hybrid search — Combining keyword and semantic search results, so exact names and paraphrases are both found.
Taught in
- Choosing A Model — AI Engineering: LLM Apps, RAG & Agents
- Chunking And Ingestion — AI Engineering: LLM Apps, RAG & Agents
- Retrieval That Finds The Right Thing — AI Engineering: LLM Apps, RAG & Agents