From 071c2207135b8e643fa2b5cb81555f59386b259e Mon Sep 17 00:00:00 2001 From: Alex Shen Date: Mon, 30 Nov 2026 22:06:05 -0500 Subject: [PATCH] docs: clarify embedding comparisons in time-travel RAG (#5318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Clarify what the Time-Travel RAG example demonstrates. It retrieves different top documents with two embedding models. Distances are measured within each model's embedding space. The text now gives readers a way to evaluate relevance with the same queries and labeled judgments, and links to the current embedding guide outside the terminal excerpt. ## Validation Checked that the revised excerpt preserves the two recorded results and that `/embedding` resolves to the embedding guide. A small Euclidean example confirmed that rescaling embeddings can change distances while preserving the ranking. The diff check passed. Validation covered the tutorial text, link, and numeric example. AI disclosure — OpenAI Codex checked the upstream recipe and documentation, edited the tutorial, and validated the example and link. Co-authored-by: AlexShen-Oguri <176059206+AlexShen-Oguri@users.noreply.github.com> Co-authored-by: OpenAI Codex --- docs/web/tutorials/agents/time-travel-rag/index.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/web/tutorials/agents/time-travel-rag/index.mdx b/docs/web/tutorials/agents/time-travel-rag/index.mdx index 241693a84..1b1aab5a5 100644 --- a/docs/web/tutorials/agents/time-travel-rag/index.mdx +++ b/docs/web/tutorials/agents/time-travel-rag/index.mdx @@ -42,8 +42,7 @@ To make this use case realistic, we'll use a perfect real-world dataset: The U.S It contains all new rules, proposed rules, and notices from federal agencies. It is the canonical source for regulatory changes, and it's updated every business day. It even has a public API, allowing us to simulate the real-time ingestion of new documents. -An example output of the workflow defined in main.py -is shown below. +An excerpt from the output of `main.py` follows. ```bash main.py expandable icon="terminal" @@ -178,6 +177,10 @@ Protection (CIP) (Update for CIP-012-1 to version CIP-012-02) Cyber Security--Co Control Centers. The 60-day notice comment period ended on July 23, 2024, with no comments received. -------------------------------------- -✅ A/B test complete. Notice the difference in relevance (distance score) between models. This showcases how LanceDB enables [experimentation with different embedding models](/docs/embeddings/) without disrupting production systems. ``` + +The two [embedding models](/embedding) return different top documents. +Each distance is measured in its model's embedding space. To compare retrieval +quality, run the same queries against both tables and evaluate the ranked +results against a shared set of relevance judgments.