mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-20 18:52:28 +00:00
The existing docs have 254 findings from our shared Vale rules. Contributors would otherwise inherit these when editing the same lines. Clean up the prose across 80 pages: correct product names and a repeated word, simplify a few phrases, and replace dashes with punctuation that fits each sentence. The pinned Vale scan now reports zero findings, with no suppressions.
25 lines
980 B
Plaintext
25 lines
980 B
Plaintext
---
|
|
title: "HyDE: hypothetical document embeddings"
|
|
sidebarTitle: "HyDE"
|
|
description: "Generate a hypothetical answer, then retrieve documents similar to it."
|
|
---
|
|
|
|
An LLM writes a hypothetical document answering the query, and that document,
|
|
not the query, is embedded and used for retrieval. It works because a
|
|
plausible answer sits nearer the real answers in embedding space than a question
|
|
does.
|
|
|
|
<Note>
|
|
This example is a runnable notebook in the
|
|
[vectordb-recipes](https://github.com/lancedb/vectordb-recipes) repository rather than a page here.
|
|
</Note>
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Open in Colab" icon="google" href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Advance-RAG-with-HyDE/main.ipynb">
|
|
Run it end to end in the browser.
|
|
</Card>
|
|
<Card title="View on GitHub" icon="github" href="https://github.com/lancedb/vectordb-recipes/tree/main/examples/Advance-RAG-with-HyDE">
|
|
Read the source.
|
|
</Card>
|
|
</CardGroup>
|