mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-13 15:22:30 +00:00
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.
25 lines
995 B
Plaintext
25 lines
995 B
Plaintext
---
|
|
title: "Contextual RAG"
|
|
sidebarTitle: "Contextual RAG"
|
|
description: "Prepend LLM-generated context to each chunk before embedding it."
|
|
---
|
|
|
|
Addresses the "lost in the middle" problem in retrieval. An LLM generates a
|
|
succinct piece of context for each document chunk, which is prepended to the
|
|
chunk before embedding -- so a chunk carries enough surrounding meaning to be
|
|
retrieved for the right queries.
|
|
|
|
<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/Contextual-RAG/Anthropic_Contextual_RAG.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/Contextual-RAG">
|
|
Read the source.
|
|
</Card>
|
|
</CardGroup>
|