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
- TF-IDF vectors match shared words, not meaning. Production systems use a learned embedding model, which can match a paraphrase that shares no words with the document.
- The corpus is a small fixed sample. Use it to understand the pipeline, not to benchmark a retrieval system.
- Because no model is called, the page does not show generation errors such as an answer that ignores its sources.
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.
Chrome Extension
Optimize and improve prompts directly inside your browser, in ChatGPT, Claude, Gemini, Grok, Perplexity, and DeepSeek.
Load unpacked
VS Code Extension
Bring PromptFlowEngine prompt optimization directly into your development workflow.
VS Code Marketplace
Keep going
Lesson: RAG Engineering
The idea behind this tool, with short videos.
Experiment with chunking first
Video: what is hybrid retrieval?
RAG Chunking Visualizer
Free RAG chunking visualizer. Split your text with nine methods, set chunk size and overlap, see every boundary and token count, and test retrieval.
Context Budget Planner
Plan an LLM context window: enter tokens for instructions, tools, history, documents, and output, then see what fits each model and what it costs.