Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Hypothetical document embeddings (HyDE)

In plain words

Draft a possible answer to guide a search for real passages; check the real sources afterward.

The fuller definition

A retrieval method that embeds a generated hypothetical document and uses that representation to search for relevant real documents.

How it fits together
  1. Generate

    Draft a hypothetical passage

  2. Embed

    Represent the passage

  3. Retrieve

    Find actual sources

A simplified relationship, not a screenshot or a complete design.

A concrete example

A system generates a plausible answer-shaped passage before searching a document collection.

The distinction that matters

The generated passage guides retrieval; it is not evidence and must not be treated as a source.

Related terms

Where it is taught

How document-grounded AI answers work

Source and further reading

Gao et al. · Precise Zero-Shot Dense Retrieval without Relevance Labels (HyDE) (arXiv, December 2022)

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC