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

Features

  • Operational metrics — verify rate, rework cycles, severity distribution, cost analysis (no LLM required)
  • Ragas retrieval metrics — context precision/recall, faithfulness, answer relevancy
  • HTML reports — interactive reports with session-level detail and color-coded thresholds
  • Pluggable adapters — bring any session format; built-in support for session-schema and Alcove
  • Ground truth matching — curated YAML entries matched by domain for retrieval evaluation

Quick Start

uv pip install raki --extra html
uv run raki validate --manifest raki.yaml
uv run raki run --manifest raki.yaml --no-llm

The --no-llm flag runs operational metrics only (no API keys needed). To include Ragas retrieval metrics, omit the flag and configure an LLM provider. Use --judge-provider anthropic for direct Anthropic API access, or --judge-provider vertex-anthropic (default) for Vertex AI.

Usage

# Run all metrics (requires LLM provider -- Vertex AI Anthropic by default)
uv run raki run --manifest raki.yaml

# Run all metrics with direct Anthropic API
uv run raki run --manifest raki.yaml --judge-provider anthropic

# Run operational metrics only
uv run raki run --manifest raki.yaml --no-llm

# Run specific metrics only
uv run raki run --manifest raki.yaml --no-llm --metrics cost_efficiency,rework_cycles

# Validate manifest and session data
uv run raki validate --manifest raki.yaml

# List available adapters
uv run raki adapters

# List available metrics (name, display name, LLM requirement)
uv run raki metrics

# Machine-readable metric list
uv run raki metrics --json

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.6.0.tar.gz (224.6 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.6.0-py3-none-any.whl (71.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raki-0.6.0.tar.gz
  • Upload date:
  • Size: 224.6 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.6.0.tar.gz
Algorithm Hash digest
SHA256 f6eab2e3423de799e6d177daec8618e308268eebbb8b245ca37eef1a8c2c7df8
MD5 5debbf3e3ec984a0fa16727dbbaa15ee
BLAKE2b-256 35ac039de92a4840a9f754030c6f26b6fc18fe22f5ac8b49bf772566bcee3bef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: raki-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 71.5 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e420d0a1164abd073b88818f04e1ea36207fd7e43f0b87e1baedd8506c4593d8
MD5 b6f7a50de1456a9a7d954134bd0aa635
BLAKE2b-256 d2f8fa20465a78e264be573f793404a40ef14f297bcf6cc15b08947449f6f1be

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