BenchmarkQED: Automated benchmarking of retrieval-augmented generation (RAG) systems
Project description
BenchmarkQED
👉 Microsoft Research Blog Post
👉 BenchmarkQED Docs
Overview
flowchart LR
AutoQ["<span style='font-size:1.5em; color:black'><b>AutoQ</b></span><br>LLM synthesis of<br>local-to-global<br>queries for target<br>datasets"] -- creates queries <br>for evaluation --> AutoE["<span style='font-size:1.5em; color:black'><b>AutoE</b></span><br>LLM evaluation of<br>relative answer <br>quality on target <br>metrics"]
AutoE ~~~ AutoD["<span style='font-size:1.5em; color:black'><b>AutoD</b></span><br>LLM summarization<br>of datasets samples<br>to a curated target<br>structures"]
AutoD -- curates datasets <br>for evaluation --> AutoE
AutoD -- creates dataset summaries <br>for query synthesis --> AutoQ
style AutoQ fill:#a8d0ed,color:black,font-weight:normal
style AutoE fill:#a8d0ed,color:black,font-weight:normal
style AutoD fill:#a8d0ed,color:black,font-weight:normal
linkStyle 0 stroke:#0077b6,stroke-width:2px
linkStyle 2 stroke:#0077b6,stroke-width:2px
linkStyle 3 stroke:#0077b6,stroke-width:2px
BenchmarkQED is a suite of tools designed for automated benchmarking of retrieval-augmented generation (RAG) systems. It provides components for query generation, evaluation, and dataset preparation to facilitate reproducible testing at scale.
- AutoQ: Generates four classes of synthetic queries with variable data scope, ranging from local queries (answered using a small number of text regions) to global queries (requiring reasoning over large portions or the entirety of a dataset).
- AutoE: Evaluates RAG answers by comparing them side-by-side on key metrics—relevance, comprehensiveness, diversity, and empowerment—using the LLM-as-a-Judge approach. When ground truth is available, AutoE can also assess correctness, completeness, and other custom metrics.
- AutoD: Provides data utilities for sampling and summarizing datasets, ensuring consistent inputs for query synthesis.
In addition to the tools, we also release two datasets to support the development and evaluation of RAG systems:
- Podcast Transcripts: Transcripts of 70 episodes of the Behind the Tech podcast series. This is an updated version of the podcast transcript dataset used in the GraphRAG paper.
- AP News: A collection of 1,397 health-related news articles from the Associated Press.
Getting Started
Instructions for getting started can be found here.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Privacy & Cookies
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 benchmark_qed-0.3.0.tar.gz.
File metadata
- Download URL: benchmark_qed-0.3.0.tar.gz
- Upload date:
- Size: 14.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1cabdca54518f8f64df88c64718807d1568378db7c99ce69b6c56fa8e82e396
|
|
| MD5 |
1e687a3f576721193e94b9b302eec279
|
|
| BLAKE2b-256 |
b3937d65899c4ab18764c4f91356a7a4f909e80f837c9639e46d8eeb0efb9593
|
Provenance
The following attestation bundles were made for benchmark_qed-0.3.0.tar.gz:
Publisher:
python-publish.yml on microsoft/benchmark-qed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benchmark_qed-0.3.0.tar.gz -
Subject digest:
c1cabdca54518f8f64df88c64718807d1568378db7c99ce69b6c56fa8e82e396 - Sigstore transparency entry: 256705399
- Sigstore integration time:
-
Permalink:
microsoft/benchmark-qed@80e5c673ee899cc766f65542128f276d548b8fbf -
Branch / Tag:
refs/tags/release/v0.3.0 - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@80e5c673ee899cc766f65542128f276d548b8fbf -
Trigger Event:
push
-
Statement type:
File details
Details for the file benchmark_qed-0.3.0-py3-none-any.whl.
File metadata
- Download URL: benchmark_qed-0.3.0-py3-none-any.whl
- Upload date:
- Size: 129.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
170de8fd7f099f380f2d070dd567991a96688151e0a35b3d53333dd811691aa5
|
|
| MD5 |
88a611b6518245fdfa7843023a988111
|
|
| BLAKE2b-256 |
4f01597956b1a70b6c7084bb4268c517b8cc02571e2d9ed39928fcc289f783ca
|
Provenance
The following attestation bundles were made for benchmark_qed-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on microsoft/benchmark-qed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benchmark_qed-0.3.0-py3-none-any.whl -
Subject digest:
170de8fd7f099f380f2d070dd567991a96688151e0a35b3d53333dd811691aa5 - Sigstore transparency entry: 256705404
- Sigstore integration time:
-
Permalink:
microsoft/benchmark-qed@80e5c673ee899cc766f65542128f276d548b8fbf -
Branch / Tag:
refs/tags/release/v0.3.0 - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@80e5c673ee899cc766f65542128f276d548b8fbf -
Trigger Event:
push
-
Statement type: