Corpus Agentis
The field book to agent ecosystems
The field book to agent ecosystems
Memory · Retrieval

HyDE (Hypothetical Document Embedding)

Generate a hypothetical answer to the query, embed that, and search by similarity to the answer: surfaces matches that direct-query embedding misses.

Verified against arxiv.org

How it works

Generate a hypothetical answer to the query, embed that, and search by similarity to the answer: surfaces matches that direct-query embedding misses.

At a glance
StageRetrieval
PhaseRead
Used byCloudflare Agent Memory · RAG pipelines
Trade-off

Adds an LLM generation step; a wrong hypothetical can pull off-topic results.

Basis
Verified against
https://arxiv.org/abs/2212.10496

The corpus does not rewrite vendor documentation. Where copy is quoted verbatim it is marked as such and attributed to its source.