RAG pipeline simulator

Ask a question against a sample support handbook and watch each retrieval step: BM25 keyword ranking, vector similarity, and the hybrid ranking that fuses the two. The page then extracts an answer from the retrieved text, or tells you the sources do not contain one.

  • Free
  • Runs in your browser
  • No model calls
  • No account

How it works

The documents are sections of a synthetic support handbook. Every score on the page is computed in your browser.

Keyword ranking uses BM25. Vector ranking uses TF-IDF vectors and cosine similarity. Hybrid ranking combines the two lists with reciprocal rank fusion.

The answer is extracted from the top retrieved text. No language model is called, so the same question always produces the same result.

Limits

Questions

What is hybrid retrieval?

Hybrid retrieval runs a keyword search and a vector search for the same question and merges the two ranked lists. Reciprocal rank fusion, the method used here, scores each document by its position in each list, so a document ranked well by both rises to the top.

Does this simulator call a language model?

No. Ranking and answer extraction run in your browser with deterministic code, so there are no API keys and no cost.

Why does it sometimes say the sources do not contain the answer?

Because that is the correct behaviour for a grounded system. When the retrieved text does not hold the answer, the right response is to say so instead of guessing.

Privacy

This tool runs in your browser. The text, files and numbers you enter are not uploaded, logged or stored on a server, and no account is needed. The site counts that a tool was used, never what was entered. Privacy and security lists everything the site stores and sends.

Use it where you write prompts

The same engine runs in your editor and your browser, so you do not have to come back to this page.

Keep going