BEIR
Zero-shot information retrieval benchmark for retrieval evaluation
ABOUT
Evaluating retrieval models for RAG pipelines requires diverse datasets spanning multiple domains, query types, and difficulty levels — but individual datasets use incompatible formats, evaluation scripts, and metrics, making it nearly impossible to compare retrieval quality across models and approaches. BEIR solves this with a standardized evaluation framework that normalizes 18 diverse benchmark datasets (including TREC, NQ, HotpotQA, FiQA, FEVER, and SciFact) under a single API, provides consistent evaluation metrics (NDCG@10, Recall@K, MAP) across all datasets, supports dense retrievers (DPR, ColBERT, Sentence-BERT), sparse retrievers (BM25, SPLADE), and cross-encoder rerankers through a unified scoring interface, and enables zero-shot evaluation — measuring how well a retrieval model trained on one domain generalizes to unseen domains — giving RAG practitioners a rigorous, reproducible benchmark for comparing retrieval strategies.
pip install beir