Processed online by Toolvito
Retrieval Relevance Evaluator
Bring the ranked results of your search engine or RAG retriever and see how good they are. With relevance judgments you get the standard measures, exactly; with the query and passage texts you also get an estimate of relevance by meaning that points to off-topic results and ranking mistakes.
How to evaluate results
- Choose a results table (CSV, Excel, JSON) with a query, a document id and a rank, and if you have them, the passage text and a relevance judgment. A TREC run file (qid Q0 docid rank score tag) works too.
- Add the judgments as a column (relevance 0, 1, 2 …), as a separate table (query_id, doc_id, relevance) or as a TREC qrels file.
- Choose the cut-off k (for example 10) and press Evaluate. Download the measures per query and per result.
The measures
- Precision@k and recall@k: the share of the top k that is relevant, and the share of all known relevant documents found in the top k.
- MRR: 1 / rank of the first relevant result, averaged. MAP: average precision over all relevant documents, averaged over queries.
- nDCG@k: graded relevance discounted by rank, compared with the best possible order (linear or exponential gain).
- Judged@k: how many of the top k had a judgment. Unjudged results count as not relevant, so the measures are lower bounds when it is low.
The estimate by meaning
- With query and passage texts, all-MiniLM-L6-v2 (or the multilingual MiniLM) measures how close each passage is in meaning to its query: results that look off-topic, lower-ranked results that are clearly closer than higher-ranked ones, and an estimated nDCG.
- The estimate is not a judgment: a passage can be close in meaning and still not answer the question. With judgments, their agreement (Spearman correlation, ROC AUC) shows how far the estimate can be trusted for your data.
Good to know
- Your retrieval system is not run here; only the results you bring are evaluated.
- To build a test set and compare retrieval methods on your own documents, use the Retrieval Benchmark Generator; to check the citations of an AI answer, the RAG Citation Checker.