Toolvito

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.

Make a retrieval test set

Make a retrieval test set

Markdown headings (#, ##) start new sections.

Or drop files here. TXT, MD, MARKDOWN, HTML, HTM, XHTML, DOCX, ODT, EPUB, PDF, CSV, TSV, XLSX, JSON, JSONL or NDJSON, up to 20 files, 100 MB each at most.

    5–2,000.

    More options

    Cosine similarity 0.85–1.

    The same seed gives the same queries again.

    When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to make a benchmark

    1. Choose documents (PDF, Word, Markdown, HTML, text) or a chunks file (JSON Lines, JSON, CSV or Excel with a text column), or paste text.
    2. 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 “;”).
    3. Choose the query kind and how many queries, then press Make benchmark.
    4. 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.

    Related tools