Tools for running IR Evaluation Suites
Project description
🍬 SuiteEval
Tools for running IR evaluation suites with PyTerrier.
SuiteEval helps you define, run, and aggregate evaluations across datasets while managing temporary indices and memory footprint.
📘 Overview
SuiteEval provides:
- Declaration of pipelines (BM25, dense, re-ranking chains).
- Execution of evaluation suites (e.g., BEIR-style benchmarks).
- DatasetContext utilities for temporary paths and text loading.
- DataFrame outputs for downstream analysis.
Workflow:
- Implement
pipelines(context)that yields one or more PyTerrier pipelines (optionally named). - Pass it to a suite (e.g.,
BEIR). - Analyse the returned DataFrame.
🚀 Getting Started
Install from PyPI
pip install suiteeval
Install from source
git clone https://github.com/<your-username>/suiteeval.git
cd suiteeval
pip install -e .
⚙️ Defining Pipelines
Write a callable that accepts a DatasetContext and returns or yields pipelines.
- Return a list/tuple of pipelines or
(pipeline, name)pairs; or - Yield pipelines to keep only one large model resident in memory.
DatasetContext provides:
context.path— temporary working directory for indices/artifacts.context.get_corpus_iter()— iterator suitable for indexing.context.text_loader()— attaches document text for re-ranking.
Example
from suiteeval import BEIR
from pyterrier_pisa import PisaIndex
from pyterrier_dr import ElectraScorer
from pyterrier_t5 import MonoT5ReRanker
def pipelines(context):
index = PisaIndex(context.path + "/index.pisa")
index.index(context.get_corpus_iter())
bm25 = index.bm25()
yield bm25 >> context.text_loader() >> MonoT5ReRanker(), "BM25 >> monoT5"
yield bm25 >> context.text_loader() >> ElectraScorer(), "BM25 >> monoELECTRA"
results = BEIR(pipelines)
🧪 Running Suites
Entry points (e.g., BEIR) accept your pipeline factory and return a DataFrame:
results = BEIR(pipelines) # per-dataset metrics and system names (if provided)
📦 Reproducibility & Resource Management
- Temporary indices live under
context.pathand are cleaned up. - Prefer yielding pipelines when using large models.
- Name systems via
(pipeline, "<name>")for clear result tables and logs.
🛠️ Compatibility
Works with modern PyTerrier and common extensions
(e.g., pyterrier_pisa, pyterrier_dr, pyterrier_t5).
For older environments, ensure standard PyTerrier transformer interfaces.
👥 Authors
🧾 Version History
| Version | Date | Changes |
|---|---|---|
| 0.1 | 2025-11-03 | Initial README |
License
This project is licensed under the MIT License — see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suiteeval-0.1.2.tar.gz.
File metadata
- Download URL: suiteeval-0.1.2.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ddb0212aaf4ac1da003161e8d647eec214d02c6ffcb295680f8d634422ad071
|
|
| MD5 |
4455a49a9e4108b1f1234e65d4feb321
|
|
| BLAKE2b-256 |
4efc8641310ef7d1afb9da697a1cf93d4ee25b3ce7d3a069c26c63cb30b4929c
|
File details
Details for the file suiteeval-0.1.2-py3-none-any.whl.
File metadata
- Download URL: suiteeval-0.1.2-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
379f71d729f53eeb573509c4948a4158b592b0e86ca02561b72591b04d2ca1b1
|
|
| MD5 |
cadc0aa0a5f4340d88abd786433c100a
|
|
| BLAKE2b-256 |
b9902539160c74c2347d336624bc5153afe88f5e0fdb47b0c76faf07ccbf4298
|