Files
lancedb/docs/web/tutorials/agents/hyde.mdx
T
Jack Ye f475465590 docs: list every use case in the sidebar
The three gallery pages held thirteen examples as rows in a table, reachable
only by opening the gallery first. Each is now its own page, so the sidebar
lists them and search finds them by name.

A page for an example that lives in vectordb-recipes says so and links to the
notebook and its source, rather than pretending the tutorial is here.

Overview moves above the groups -- the tab uses pages rather than groups, which
is what allows an entry to sit outside every group. Stable World Model joins
Training, since that is what it is doing. The agent plugin page is now Using
LanceDB Agent Skill.

Mintlify cannot link outward from a sidebar: an {anchor, href} entry is ignored
and a bare URL renders with its scheme mangled to a single slash, so a real page
per example is the only way to list them.
2026-09-10 00:07:02 -07:00

25 lines
984 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>