More screenshots
Works with the AI Agents you already use
RAG Testset Builder
by Uttam Sharma
Builds verifiable RAG ground-truth test sets from local documents with automated quote checking and versioned exports.
$100
RAG Testset Builder
Example session with this skill installed
I have a folder of HR policy PDFs in ./docs. I need to build a test set for our new RAG assistant. Can you set up the workspace and start the inventory?
- Read your context and instructions
- Compiled the rag testset builder
I have initialized the RAG test set builder workspace in your project. The tool identified 42 PDF documents in the ./docs directory. I've excluded 2 duplicates based on content hashes.
Workspace Initialization Summary
| Metric | Value |
|---|---|
| Workspace Path | ./.rag-testset/ |
| Source Folder | ./docs |
| Eligible Files | 40 |
| File Types | PDF (100%) |
| Date Range | 2022-01-15 to 2024-05-20 |
| Default Sample Size | 50 (Adjustable in config.yaml) |
I have created the initial config.yaml. Before we proceed to sampling, we need to define the business context.
Next steps
- Open
./.rag-testset/runs/run_20231027_0915/config.yamland update thequeries.domain(e.g., "HR Benefits and Compliance") anddocument.chatbot_name. - Provide your API keys (e.g.,
OPENAI_API_KEY) in your environment or a.envfile. - Run
rtb sampleonce the configuration is ready.
Connects securely to your tools. The creator never sees your data.
About this skill
Testing a RAG pipeline with vibes and "it feels right" responses is not a strategy. You need a verifiable, ground-truth test set where every answer is anchored to a specific page and quote. This skill automates the creation of that golden set, moving from a raw corpus to a frozen, peer-reviewed test plan without letting hallucinations leak into your evaluation data.
What it does
- Source Sampling performs seeded draws across your corpus, supporting random, grouped (by year, folder, or type), or user-defined samples.
- Fact Extraction converts pages and sections into atomic fact cards, strictly enforcing word-for-word quotes to prevent model drift.
- Automated Query Planning balances test sets across seven types, including lookup, filtering, trends, summarization, and edge cases.
- Multi-Stage Verification runs scripted checks for quote validity, number accuracy, "nothing found" confirmation, and answerability.
- Artifact Generation produces versioned
.jsonltest sets and professional.docxtest documents with blank columns for manual testers.
How it works
- Initialize the workspace using
rtb initand configure your domain, personas, and LLM providers in theconfig.yaml. - Sample and Extract your documents to build a corpus map and extract fact cards, with mandatory human checkpoints for the sample and query plan.
- Generate and Check the queries and ground truths using your LLM, followed by automated scripts that reject any items failing quote or logic checks.
- Review and Freeze the set via an Excel-based review sheet, then sign off to generate the final versioned test artifacts.
Frameworks & tools
Built with Python 3.12. It integrates with OpenAI, Azure OpenAI, and Anthropic for generation, uses Pandas for trend analysis, and exports to JSONL and Word formats.
Why this beats prompting it yourself
Manual test generation is prone to hallucinated ground truths and poor document coverage. This skill enforces a "nothing enters unchecked" rule, verifying every quote against the source page by script before a human ever sees it.
Use cases
- Build a golden set for a corporate chatbot using SharePoint or local file exports.
- Create complex trend and analytics test queries from structured logs and documents.
- Verify RAG performance against specific personas and edge cases like out-of-scope data.
- Generate versioned evaluation datasets for CI/CD pipeline scoring.
Known limitations
Does not support direct ingestion from SharePoint, Blob, or S3; files must be synced to a local folder or CSV list first. Requires Python 3.12 or later.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.