Prompting & Workflows
Query expansion for RAG: choosing rewriting, multiple searches, and HyDE
Query expansion changes a user's question into search-friendly wording or several queries to retrieve useful material. It can help when terms are ambiguous or users phrase things differently from the documents. But generated wording is not evidence, and it can erase original constraints such as product codes or dates. Keep the original query, use only retrieved documents as answer evidence, and compare approaches on the same query set.