RAG observability: capture, evaluate, and explain pipeline runs (umbrella package + analyst CLI)
Project description
ragradar
Analyst CLI for the ragradar observability system. Reads the local store at
~/.ragradar/runs.db that ragradar-capture writes; browses sessions, searches
runs, and explains exactly what went into a run's context window.
pip install ragradar
Runs are addressed as sNrN (session 2, run 3 → s2r3) — the id every
capture call returns. Commands that take a <target> accept an exact
id, nothing (= latest run), or a quoted text hint (searched; multiple
matches show a pick list).
ragradar list — sessions and runs
ragradar list # sessions, newest first
ragradar list s2 # runs inside session 2
Sessions
| ID | Runs | Pipeline | Created | Title |
|----+------+-------------+------------+-------|
| s2 | 3 | rag_example | 2026-07-02 | |
| s1 | 1 | quickstart | 2026-07-02 | |
ragradar find — search runs by query text
ragradar find "reranking" # token match (FTS5)
ragradar find "score scale" --exact # phrase match
ragradar find "RRF" --session s2 # scope to a session
ragradar find "RRF" --pipeline rag_example
ragradar find "RRF" --from 2026-07-01 --to 2026-07-02
ragradar find "RRF" --today
ragradar find --recent 5 # latest N runs, no hint
Search results (2)
| Run | Date | Session | Query |
|-------+------------+---------+----------------------------------|
| s2 r3 | 2026-07-02 | | what is RRF and how does it ... |
ragradar explain — the seven analysis factors
ragradar explain # latest run
ragradar explain s2r3 # specific run
ragradar explain s2r3 --full
ragradar explain s2r3 --html # snapshot to ~/.ragradar/reports/s2r3.html
Renders every factor the captured data supports, silently skipping the
rest: token usage, chunk scores, duplicates, truncation, dropped
history, cache hits, and the final prompt. Runs scored by
ragradar-evaluate also show an Evaluation Scores panel (risk score, policy
violations, RAGAS metrics).
+------------- Token Usage --------------+
| Total: 1138/4096 (27.8%) |
| Chunks: 625 |
| Headroom: 196 |
+----------------------------------------+
+------------- Duplicates ---------------+
| 1 duplicate (25%): 1 window |
+----------------------------------------+
ragradar diff — compare two runs
ragradar diff s2r1 s2r3
Side-by-side query delta, chunks added/removed, per-chunk score deltas, token budget deltas, history and truncation changes. Ambiguous targets are rejected — use exact ids here.
ragradar budget — token waterfall only
ragradar budget s2r3
+------------- Token Usage --------------+
| Total: 1138/4096 (27.8%) |
| Chunks: 625 History: 13 |
| System: 500 Headroom: 196 |
+----------------------------------------+
ragradar session rename
ragradar session rename s2 "RRF investigation"
Session 2 renamed to "RRF investigation".
Notes
- Read-mostly by design: the only data this CLI writes is a session
title. (Opening the store may create/migrate
runs.dbviaragradar-core— that's environment setup, not run data.) - No LLM anywhere in the navigation path; search is SQLite FTS5.
- Optional semantic search:
pip install ragradar[semantic].
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
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
File details
Details for the file ragradar-0.1.0.tar.gz.
File metadata
- Download URL: ragradar-0.1.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df6f22ae3894982d94c9fcf311290a3e0c56a23b4f2d9c29fa874eb140736ddb
|
|
| MD5 |
b04c9aca2271c156d5dfb70cc2e4fa76
|
|
| BLAKE2b-256 |
8e3a4af7484e13897b77de41b930b74b6747760e34ced80567b11a8a463ff6ea
|
File details
Details for the file ragradar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ragradar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cf006d135915207c709809ba8575f6dc6984d114463cecc9ca3494585face45
|
|
| MD5 |
b67193a17b2369fdeac27a6a6f5f8b6e
|
|
| BLAKE2b-256 |
85512b6a9c46915924136c5592797c8e136322ccb2eea7f6608497791f9af8d5
|