ai-agent

verbatim-rag: Accurate AI Content

Get grounded content with verbatim-rag, a hallucination-prevention tool for founders using AI agents, ensuring accurate citations.
203 stars33 forksPythonGuide quality 8/10Updated 9/7/2026100% free · open source
What it does

Verbatim-rag is a hallucination-prevention tool that ensures AI-generated content is grounded in source documents with exact citations.

When to use it
  • When using AI agents to generate content that requires accurate citations
  • When needing to prevent hallucinations in AI-generated text based on source documents
  • When requiring a RAG system with verbatim span extraction for content generation
Ready-to-paste prompt
python main.py --input 'What are the main points of the document?' --doc 'path/to/source/document.txt' --output 'output.txt'
Heads up: Ensure you have the correct Python version installed, as specified in the README, to avoid compatibility issues with the required packages
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🔑 Needs an API key

Works after you add credentials — the setup agent will ask you for them.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/verbatim-rag && curl -fsSL https://workflowstacks.com/api/skills/verbatim-rag/claude-skill -o ~/.claude/skills/verbatim-rag/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How verbatim-rag: Accurate AI Content works
Codeflow
Free to inspect

Verbatim-rag: Accurate AI Content is a large Python project (~16k lines across 96 code files, plus 8 test files). Setup is light: runs with Docker — add your API keys to .env. Last commit this month, MIT license, has a test suite.

Size
Large codebase
~16k lines · 96 code files · ~2 h to skim
Setup
Light setup
Runs with Docker — add your API keys to .env.
Runs on
Python · Docker
Needs API keys (.env)
Python 82%JavaScript 17%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    verbatim_rag/cli.py
    Where the program starts running
  3. 3
    pyproject.toml
    Dependencies and the commands it exposes
  4. 4
    .env.example
    The API keys and settings you must provide
  5. 5
    verbatim_rag/__init__.py
    Inside verbatim_rag/ — the main logic begins here
What's in each folder
verbatim_rag/Core code — the actual logic33 files
frontend/Frontend / UI45 files
packages/Sub-packages / plugins33 files
api/Backend / API8 files
docs/Documentation11 files
examples/Examples you can copy6 files
scripts/Helper scripts3 files
docker/Deployment / infrastructure2 files
READMEHas testsDocumentedCI checksDocker readyExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
KRLabsOrg
Language
Python
Category
ai-agent
Published
1/31/2025

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.