Processed online by Toolvito
Retrieval Benchmark Generator
Test how well your search or RAG retrieval finds the right passage. Turn your own documents into a benchmark with queries and their correct passages, and see baseline scores for word search and embeddings.
How to make a benchmark
- Choose documents (PDF, Word, Markdown, HTML, text) or a chunks file (JSON Lines, JSON, CSV or Excel with a text column), or paste text.
- Optional: add your own questions as a table with a question column and a relevant_ids column (the ids of the passages that answer them, several separated by “;”).
- Choose the query kind and how many queries, then press Make benchmark.
- Download corpus.jsonl, queries.jsonl and qrels.tsv (the BEIR format most evaluation tools read), the hard negatives and the scores.
How the queries are made
- Keyword queries: the 3–5 most specific words of a passage, as people type them into a search box.
- Sentence queries: one sentence of a passage. By default the sentence is taken out of its passage in the corpus (the Inverse Cloze Task), so it cannot be found by copying words.
- The relevant passages are the one the query came from and its near copies (same meaning, cosine similarity at or above your setting).
- Hard negatives: the passages that look most similar but are not relevant, for training and testing re-rankers.
The scores
- Three baselines are scored on the set: BM25 (word matching), dense retrieval with all-MiniLM-L6-v2 (or the multilingual MiniLM), and a hybrid of both (reciprocal-rank fusion).
- Recall@1, @5 and @10, MRR@10 and nDCG@10, plus each query’s rank (per-query.csv).
- Queries made from the text are easier than real users’ questions. Use the scores to compare chunk sizes or models, and add real questions for the final test.