RAG from scratch: Part 9 (Query Translation -- HyDE)

Опубликовано: 24 Февраль 2026
на канале: LangChain
22,871
304

HyDE (Hypothetical Document Embeddings) is an approach to improve retrieval that generates hypothetical documents that could be used to answer the user input question. These documents, drawn from the LLMs knowledge, are embedded and used to retrieve documents from an index. The idea is that hypothetical documents may be better aligned with the indexes documents than the raw user question.

Slides:
https://docs.google.com/presentation/...

Code:
https://github.com/langchain-ai/rag-f...

Reference:
https://arxiv.org/pdf/2212.10496.pdf