Skip to main content

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

RAKI HTML Report

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 --gate thresholds and --fail-on-regression for 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

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


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.9.0.tar.gz (325.5 kB view details)

Uploaded Source

Built Distribution

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

raki-0.9.0-py3-none-any.whl (111.0 kB view details)

Uploaded Python 3

File details

Details for the file raki-0.9.0.tar.gz.

File metadata

  • Download URL: raki-0.9.0.tar.gz
  • Upload date:
  • Size: 325.5 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

Hashes for raki-0.9.0.tar.gz
Algorithm Hash digest
SHA256 bbbe5f38abfe67ba14bb39ad7faf3f1e07cd35fb3f6a2d646f4ea5fdbb89e305
MD5 391a699ef2699d03961d45786be205a4
BLAKE2b-256 ee3c16d584ae0beebc35ad00ab63231147ea0b8ac076cb4afb191ade51d93871

See more details on using hashes here.

File details

Details for the file raki-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: raki-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 111.0 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

Hashes for raki-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0356533ef66cb402289dcda9591d2c256c8c60df3bebcbc9f0667c3b5d49f17
MD5 9b775a987f8641d1cd0cbdf9cc2d3f29
BLAKE2b-256 9775ad96bd5915461ae0a67e1df3689756832f548afd6e7b96ca2ce0cb4dea54

See more details on using hashes here.

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