Retrieval Assessment for Knowledge Impact — evaluate agentic RAG quality
Project description
RAKI -- Retrieval Assessment for Knowledge Impact
A CLI tool that evaluates agentic RAG quality from session transcripts.
Report Preview
Three tiers of metrics
| Tier | What you need | Metrics |
|---|---|---|
| Operational | Nothing (zero config) | Verify rate, rework cycles, cost, severity, latency, tokens, self-correction |
| Knowledge | --docs-path |
Knowledge gap rate, knowledge miss rate |
| Analytical | --judge |
Faithfulness, answer relevancy, context precision, context recall |
Features
- Operational metrics -- verify rate, rework cycles, severity, cost, latency, tokens, self-correction (no LLM required)
- Knowledge metrics -- gap rate and miss rate based on project documentation coverage
- Analytical metrics -- Ragas-backed context precision/recall, faithfulness, answer relevancy (LLM judge)
- HTML reports -- interactive reports with session-level detail and color-coded thresholds
- Quality gates -- per-metric
--gatethresholds and--fail-on-regressionfor CI - Pluggable adapters -- bring any session format; built-in support for session-schema and Alcove
Quick Start
# Install
uv pip install raki[html]
# Validate manifest
uv run raki validate --manifest raki.yaml
# Run operational metrics (default, no API keys needed)
uv run raki run --manifest raki.yaml
# Add knowledge metrics
uv run raki run --manifest raki.yaml --docs-path ./docs
# Add analytical metrics (requires LLM credentials)
uv run raki run --manifest raki.yaml --judge --judge-provider anthropic
Usage
# Run all tiers (operational + knowledge + analytical)
uv run raki run --manifest raki.yaml --docs-path ./docs --judge
# Run with direct Anthropic API
uv run raki run --manifest raki.yaml --judge --judge-provider anthropic
# Run specific metrics only
uv run raki run --manifest raki.yaml --metrics cost_efficiency,rework_cycles
# Quality gates for CI
uv run raki run --manifest raki.yaml \
--gate 'first_pass_verify_rate>0.85' \
--gate 'rework_cycles<1.5' \
--quiet
# List available metrics
uv run raki metrics
# Validate manifest and session data
uv run raki validate --manifest raki.yaml --deep
# Compare two evaluation runs
uv run raki report --diff results/baseline.json results/compare.json --fail-on-regression
# List available adapters
uv run raki adapters
Documentation
- Getting Started -- install, run, and understand your first report
- Metric references:
- Operational Metrics -- verify rate, rework, cost, severity, latency, tokens, self-correction
- Knowledge Metrics -- gap rate, miss rate, domain matching
- Analytical Metrics -- faithfulness, relevancy, precision, recall
- CI Integration Guide -- quality gates, regression detection, GitHub Actions / GitLab CI
- Results Interpretation Reference -- zone tables and common patterns
- Ground Truth Curation Guide -- write effective ground truth entries
- Adapter Guide -- integrate custom session formats
- Session Schema Reference -- field definitions for session-schema format
Development
uv sync --python 3.12 --all-extras
uv run pytest tests/ -v
uv run ruff check src/ tests/
uv run ruff format src/ tests/
uv run ty check src/raki/
See CONTRIBUTING.md for the full contribution workflow.
License
Apache 2.0 -- see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
raki-0.8.0.tar.gz
(287.4 kB
view details)
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
raki-0.8.0-py3-none-any.whl
(96.8 kB
view details)
File details
Details for the file raki-0.8.0.tar.gz.
File metadata
- Download URL: raki-0.8.0.tar.gz
- Upload date:
- Size: 287.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b947a143b706b0bba8d97c51d24444df45e00af16d046a0546d3a9fd6ee10806
|
|
| MD5 |
be49875161b6fc76a210d9ed7ac4fc0f
|
|
| BLAKE2b-256 |
7544ec0bc5cbcd79bec8ece2a3df9248de45d9db25408d212b459d1232f172b4
|
File details
Details for the file raki-0.8.0-py3-none-any.whl.
File metadata
- Download URL: raki-0.8.0-py3-none-any.whl
- Upload date:
- Size: 96.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
285101d877ef790314fa627299022c0b30f236b500d01e42c259ab7dd94335ba
|
|
| MD5 |
e57d02840aabeee122fa5445ca59a982
|
|
| BLAKE2b-256 |
df8c48675304019c23881099709021a5a5d14611cff7eb2833d621a917bdf8b0
|