Myrag — Data skill for Claude Code
Free, local RAG over messy government PDFs and Word docs (NIST AI RMF, CSF 2.0, FedRAMP): hybrid search in Postgres + pgvector, verified citations, and real evals (recall@k, MRR, nDCG, faithfulness).
How to install Myrag
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open PaulCornell/myrag and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Myrag does
Free, local RAG over messy government PDFs and Word docs (NIST AI RMF, CSF 2.0, FedRAMP): hybrid search in Postgres + pgvector, verified citations, and real evals (recall@k, MRR, nDCG, faithfulness). Built with Claude Code.
Alternatives in Data
- Agentlas Storm — Run a force-robust Stormbreaker loop — route to real agents, execute a verified pipeline to completion 1.1k ★
- Ratel — The self-improvement layer for AI agents 573 ★
- Indonesia Gov APIs — 🇮🇩 50+ Indonesian Government APIs & Data Sources — BPS, OJK, BPJPH, BPOM, Bank Indonesia, IDX, BMKG + MCP se 134 ★
README
MyRAG: cited answers over messy government documents, with real evals
MyRAG is a retrieval-augmented generation (RAG) system over five public government documents on AI risk and cybersecurity: three NIST PDFs and two government Word templates. You ask a question in plain English. It finds the relevant passages, and a language model answers **only from those passages**, citing each claim with a link to the exact sentence, section, and page it came from. When the documents don't cover a question, it says so instead of guessing.
**It's free to run.** By default everything runs on your own computer: a small open-weight model (Qwen 2.5 3B via [Ollama](https://ollama.com)) writes the answers, and local models handle search. No account, API key, or payment is needed. If you have an Anthropic API key, one setting switches answering to **Claude** for higher-quality answers and guaranteed-verbatim citations.
The repo also includes the evaluation that shows how well it works: a labeled test set with exact source quotes, search metrics (recall@k, MRR, nDCG), an LLM-graded check of answer faithfulness and correctness, and a web dashboard for exploring the results.
| Ask screen | Streams the answer with clickable citations; a source panel shows the cited text highlighted in context; "Why these sources?" shows how each retrieval method ranked every passage. |
| Evals dashboard | Plain-English explanation of the tests, headline scores, recall@k per retrieval method, a chunk-size sweep, scores by question type, and a drill-down for every test question. |
Quick start
These are macOS commands, run from the project root; see [Setup](#setup) for details, Linux, and [Windows](#setup-on-windows). Everything is free: no account or API key needed.
**First time** (*roughly 30–45 minutes, an estimate*: mostly downloads and the one-time document analysis):
brew install node python@3.12 postgresql@18 pgvector poppler tesseract ollama
brew servic
Related Skills
Eval RAG
Evaluate a retrieval pipeline separately from the generation on top of it — Recall@k, MRR, nDCG, then citation
Documind
AI document assistant for small businesses: ingests PDFs (contracts, invoices), extracts validated data with C
Lending Journey Agent
Simulated UK loans agent: rules decide, AI explains. RAG with citations, guardrails, human handoff, evals and
Docwise Agentic
Full agentic RAG pipeline: adaptive chunking → Qdrant hybrid search (semantic + BM25 + RRF) → LangGraph ReAct
HyperMnesia
Self-hosted long-term memory for AI coding agents: Postgres+pgvector doc-RAG (component/constraint map + hybri
Building Online RAG Pipelines For Semantic Search
Build a production retrieval-augmented generation pipeline in plain JavaScript: ingest, chunk, embed, store in
Related Agents
RAG Eval Engineer
ML and data engineer for LLM and RAG quality - builds and runs evals (retrieval recall, answer faithfulness, c
Compliance Mapper
Delegates to this agent when the user wants to map penetration-test findings to compliance frameworks — PCI DS
Appsec Compliance Checker
Use proactively to map security findings from a threat model or code review to specific controls in OWASP ASVS