Tooluck logoTooluck
SKILL.md

rag-observability-evals

Agent skill fromBagelHole/DevOps-Security-Agent-Skills

Monitor and evaluate RAG systems with retrieval quality metrics, groundedness checks, hallucination detection, and continuous regression testing.

How to install rag-observability-evals

install rag-observability-evals
# install the DevOps-Security-Agent-Skills pack with the skills CLI
npx skills add BagelHole/DevOps-Security-Agent-Skills

# or add only this skill to Claude Code: copy the folder

devops/ai/rag-observability-evals/

# into

~/.claude/skills/rag-observability-evals/ (all projects)

.claude/skills/rag-observability-evals/ (one project)

devops/ai/rag-observability-evals/SKILL.md

MITFull file
1# RAG Observability and Evaluations
2
3Run retrieval-augmented generation like a measurable production system, not a black box.
4
5## When to Use This Skill
6
7- Deploying a RAG system to production and need quality monitoring
8- Setting up automated evaluation pipelines for retrieval and generation
9- Debugging hallucination or relevance regressions
10- Building dashboards for RAG-specific golden signals
11- Establishing quality gates for RAG pipeline changes
12
13## Prerequisites
14
15- RAG pipeline with instrumented retrieval and generation stages
16- Python 3.10+ with evaluation libraries (ragas, langchain, openai)
17- Prometheus endpoint for custom metrics export
18- Benchmark dataset with gold-standard question/answer/source triples
19- OpenTelemetry SDK integrated into the RAG service
20
21## What to Measure
22
23### Retrieval Quality
24- Recall@k and MRR for top-k chunks
25- Citation coverage and source freshness
26- Embedding drift and index staleness
27
28### Generation Quality
29- Groundedness score (answer supported by retrieved context)
30- Hallucination rate by route/use case
31- Instruction adherence and format validity
32
33### Reliability and Cost
34- p50/p95 latency split by retrieval vs generation
35- Token usage per stage
36- Cache hit rate and cost per successful answer
37
38## RAGAS Evaluation Script
39
40```python
41# rag_eval.py
42"""Evaluate RAG pipeline quality using RAGAS metrics."""
43from ragas import evaluate
44from ragas.metrics import (
45 faithfulness,
46 answer_relevancy,
47 context_precision,
48 context_recall,
49…

Excerpt shown under the repository's MIT license.

More skills in DevOps-Security-Agent-Skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates