Skip to main content

Self-contained CLI to measure an LLM against the Raidex Responsible-AI index

Project description

Raidex

An open Responsible AI index for frontier models.raidex.ai

Raidex evaluates frontier LLMs across open RAI benchmarks — safety, fairness, factuality, security, machine ethics, robustness, and privacy — and publishes a composite RAI Score on a submit-driven leaderboard. Every benchmark is open-source and runnable; the project shows the capability-vs-RAI reporting gap side by side.

Measure your own model: the raidex CLI

pip install raidex gives you the same measurement core the leaderboard runs, as a self-contained CLI. Score your own fine-tuned or self-hosted model against the Raidex index in your own environment — no account, no queue, no upload, no dependency on Raidex servers — and get board-comparable per-dimension + composite RAI scores.

pip install raidex

raidex eval --model openai/gpt-5.2 --tier A                                      # any litellm model
raidex eval --model http://localhost:8000/v1 --served-name my-model --tier A+B  # a local OpenAI-compatible endpoint
raidex eval --model ... --benchmarks bbq,strongreject                           # a subset
raidex eval --model ... --judge anthropic/claude-opus-4-8                        # configure the LLM judge
raidex eval --model ... --dry-run                                               # cost estimate only
raidex fetch-data                                                               # pre-cache data for offline / air-gapped use
raidex eval --model ... --offline --output results.json                         # run with zero network

It prints per-dimension + composite RAI Score + coverage (N/9) and writes a self-describing JSON — model spec, pinned dataset versions, judge, sampling, timestamp — that never leaves your machine. Benchmarks with no judge configured are skipped with honestly reduced coverage, not a failure. Scores are identical in scale to the leaderboard (same core, same benchmarks, same normalization).

Repository layout

  • raidex/ — the pip-installable raidex CLI (raidex/cli.py) over the pure raidex.core eval-and-score library. The core is the shared foundation; the backend service and the CLI are two thin frontends over it, which is why a local score matches the board.
  • space/ — the HuggingFace Space (Gradio app): leaderboard, the capability-vs-RAI gap visual, model cards, and the submit form. Deployed to the Space above.
  • backend/ — the eval runner / service: polls the request queue, calls raidex.core, and writes results to the dataset.

The two datasets (raidex-results, raidex-requests) are generated data and live on the HF Hub, not in this repo.

Benchmarks (8 constituents)

Tier Benchmark Dimension Pipeline
A BBQ Fairness & Bias lm-eval (generative)
A WMDP Security lm-eval (generative)
A SimpleQA Factuality litellm + judge
A StrongREJECT Security (refusal) strong_reject rubric
A ETHICS Machine Ethics lm-eval (generative)
A XSTest Safety (over-refusal) litellm + judge
B AdvGLUE Robustness litellm (exact-match)
B ConfAIde Privacy litellm (correlation)

The RAI Score is the mean of normalized constituent scores (0–100); coverage is reported as N/8. See space/METHODOLOGY.md for the index design, generative-task creation, judging, sampling, and normalization.

Running the backend

cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# litellm reads provider keys from env vars (OPENAI_API_KEY, ANTHROPIC_API_KEY, ...);
# an OpenAI/Anthropic key is required for the judges.
python runner.py --dry-run --model openai/gpt-5.2 --tier A+B    # cost estimate
python runner.py --model anthropic/claude-opus-4-8 --tier A+B   # full run + upload
python runner.py --poll                                         # drain the request queue

Reproducing the published board. The leaderboard was produced by running the full 17-model roster at Tier A+B. backend/rerun.py runs the rate-limited batch with per-provider throttling and resume; the five always-greedy OpenAI/Anthropic models run via runner.py. See backend/README.md for the roster and provider routing, the exact keys, the reasoning-locked / WMDP-recovery / sampling / neutral-judge settings, the 2026-06-18 capability snapshot, and the generative-vs-loglikelihood calibration. Numbers reproduce within the stated error bars (composite 95% half-width ~±2 points), not bit-for-bit.

Running the Space locally

cd space
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
RAIDEX_DATA_SOURCE=hf python app.py     # reads the live results dataset

License

MIT — see LICENSE.

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

raidex-0.1.1.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

raidex-0.1.1-py3-none-any.whl (55.3 kB view details)

Uploaded Python 3

File details

Details for the file raidex-0.1.1.tar.gz.

File metadata

  • Download URL: raidex-0.1.1.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for raidex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 33ba70f79b8d04a8c10bb66486e1bf66bcfa9b53c1e97f602f645ccf0e63c164
MD5 b8424fe3d27d5db61be796b26e1024e9
BLAKE2b-256 dc8eed31251411a596be70aabd3d6c411e0fc9263fd8632fcd53e850e9f77591

See more details on using hashes here.

Provenance

The following attestation bundles were made for raidex-0.1.1.tar.gz:

Publisher: publish-pypi.yml on cloudronin/raidex

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

File details

Details for the file raidex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: raidex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 55.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for raidex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efc5692ee65ef2af981d93d3443e7c932d9d1922975be55bf80fbfeefe087aa4
MD5 e13b0b8c850fd512c3f4ad0d6312373d
BLAKE2b-256 eea11ae4625aa07f083e73efc9ed9994b136ca384386c0ce64c2ac0d3a160d3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for raidex-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on cloudronin/raidex

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