docs: clarify embedding comparisons in time-travel RAG (#5318)

## 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 <codex@openai.com>
This commit is contained in:
Alex Shen
2026-12-01 11:06:05 +08:00
committed by GitHub
co-authored by AlexShen-Oguri OpenAI Codex
parent 7efeb06bc5
commit 071c220713
@@ -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.
<CodeGroup>
```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.
```
</CodeGroup>
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.