HyDE (hypothetical document embeddings): at query time an LLM writes a hypothetical answer to the question, and you embed that text to retrieve similar real passages; it bridges the style gap between short queries and long documents but adds an LLM call to every query.
HyPE (hypothetical prompt or question embeddings): at indexing time an LLM generates questions each chunk could answer and you embed those, so a user question matches question-to-question; the cost is paid offline, with no added query latency but more storage and ingestion cost.
For tight latency budgets, prefer HyPE or cached rewrites over query-time HyDE.
Loading…