Jun 13Vibe with Hermes Agent — Bengaluru · RSVP
ToolsMCPBlogResearchCommunityStar on GitHub
All Tools
B
RAGFreeOpen Source

BEIR

Zero-shot information retrieval benchmark for retrieval evaluation

Apache-2.0

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.

INSTALL
pip install beir

INTEGRATION GUIDE

1. Benchmark dense retriever models against BM25 and sparse retrieval baselines across 18 diverse zero-shot retrieval datasets 2. Evaluate cross-encoder reranker quality by measuring NDCG@10 improvement over base retrieval on BEIR's full benchmark suite 3. Compare bi-encoder vs. cross-encoder retrieval strategies for specific RAG domains — biomedical, legal, news, or conversational QA 4. Validate retrieval model generalization by testing on BEIR datasets from different domains than the training corpus 5. Reproduce published retrieval evaluation results using BEIR's standardized API and consistent metric computation across all 18 datasets

TAGS

information-retrievalbenchmarkevaluationdense-retrievalnlppythonresearch
BEIR — AI Tool | Agentic AI For Good