FrontierAI.Engineer
RAG & Grounded Generation

HyDE

Also known as: Hypothetical Document Embedding

HyDE — Hypothetical Document Embedding — is a retrieval technique where the language model first generates a hypothetical answer to the user's question, then embeds that generated answer to retrieve real documents. Because the hypothetical answer is in the same writing style and vocabulary as documents in the index, it often matches more accurately than embedding the raw question. HyDE can dramatically improve recall, especially for complex or under-specified questions.