Skip to main content

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

Microsoft Privacy Statement

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

benchmark_qed-0.2.0.tar.gz (14.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

benchmark_qed-0.2.0-py3-none-any.whl (121.0 kB view details)

Uploaded Python 3

File details

Details for the file benchmark_qed-0.2.0.tar.gz.

File metadata

  • Download URL: benchmark_qed-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for benchmark_qed-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3ec0a07b872d2ab978305149368876b0f3a64f805db1a4c7e92088d14bd33f6c
MD5 b6c346248029cd2c0c8561dcaae9b2b0
BLAKE2b-256 bf76342fed547a2602370e2a394d9ebc08b765a63759c3ce5990e4e2c6882736

See more details on using hashes here.

Provenance

The following attestation bundles were made for benchmark_qed-0.2.0.tar.gz:

Publisher: python-publish.yml on microsoft/benchmark-qed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file benchmark_qed-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: benchmark_qed-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 121.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for benchmark_qed-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff875d9ad737942c5631795c86876d61279c4ed871e854067411955d43446722
MD5 1102e6826fb5725dadd66ae3d3540d5c
BLAKE2b-256 ea4a06b87370c5b66939b8b174fdc6e7034ef0b4fd7085ddb5e0eeabbf55c790

See more details on using hashes here.

Provenance

The following attestation bundles were made for benchmark_qed-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on microsoft/benchmark-qed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page