Skip to main content
All terms
Patterns

HyDE

A retrieval trick: let the model write a fake ideal answer, then search using that.

Definition

HyDE (Hypothetical Document Embeddings) improves retrieval by first having the model draft a hypothetical answer to the query, then searching for real documents similar to that draft rather than to the bare question. The richer fake answer often matches relevant documents better than the original query.