- Home
- Skills
- Agents & Orchestration
- Docchat RAG
Docchat RAG
Privacy-first local RAG engine with multi-agent fact-verification, hybrid retrieval, and Docling integration.
$13
Docchat RAG
Example session with this skill installed
Analyze my README.md and tell me how the hybrid retriever weights lexical versus vector search results. Provide the verification report.
- Read your context and instructions
- Compiled the docchat rag
I have analyzed README.md using the DocChat pipeline. The ingestion process identified the relevant sections on retrieval logic, and the research agent synthesized the answer while the verification agent audited the claims against the document source.
Retrieval Configuration Analysis
The hybrid retrieval system in DocChat balances lexical and vector search to ensure both keyword accuracy and semantic relevance. Based on the project configuration:
| Feature | Configuration Value | Description |
|---|---|---|
| BM25 Weight | 0.4 | Lexical search weight for keyword matching. |
| ChromaDB Weight | 0.6 | Dense vector weight for semantic similarity. |
| Vector K | 10 | Number of top chunks retrieved from ChromaDB. |
| Embedding Model | nomic-embed-text | Used for generating dense vector representations. |
Verification Report
- Supported: YES
- Relevant: YES
- Contradictions: NONE
- Supported Claims: The system uses an
EnsembleRetrievercombiningBM25RetrieverandChromaDB. Weights are explicitly set to[0.4, 0.6]in the settings. - Unsupported Claims: None.
- Additional Details: The weights can be customized via the
HYBRID_RETRIEVER_WEIGHTSenvironment variable in the.envfile.
Next steps
- To test different balances, update
HYBRID_RETRIEVER_WEIGHTSin your.envand restart the agent. - If you change the embedding model, run
rm -rf chroma_db/to re-index your documents. - Use the
test/test1.pyscript to benchmark how these weights affect retrieval for your specific document set.
Connects securely to your tools. The creator never sees your data.
About this skill
Privacy-focused RAG can be difficult to deploy when local models hallucinate or ignore source constraints. This skill provides a 100% local, multi-agent document QA engine that enforces factual grounding through a dedicated verification loop.
What it does
- Multi-stage verification uses a LangGraph workflow to check chunk relevance, synthesize answers, and audit claims for contradictions.
- Hybrid retrieval combines BM25 lexical search with ChromaDB dense vectors to improve recall across technical and natural language queries.
- Smart document parsing utilizes Docling to convert PDF, DOCX, and TXT files into clean Markdown, splitting content by headers to preserve context.
- Local model execution integrates with Ollama to run reasoning and embedding tasks entirely on-premise.
- Automated caching manages document chunks via SHA-256 deduplication to skip redundant processing for recurring files.
How it works
- Environment check verifies the Ollama server is active and pulls the required Llama3 and Nomic models.
- Ingestion pipeline processes local files through
DocumentProcessorto generate header-aware Markdown chunks. - Index creation builds the hybrid ensemble retriever using
RetrieverBuilderwith configurable lexical and vector weights. - Agent execution triggers the
AgentWorkflowto move from relevance checking to final fact-checking. - Report generation delivers a synthesized answer alongside a structured verification audit of supported and unsupported claims.
Frameworks & tools
This skill is built on Python 3.12, LangGraph for agent orchestration, and Docling for document conversion. It utilizes ChromaDB for vector storage, BM25 for lexical search, and Gradio for the optional web interface. All LLM operations are handled via local Ollama instances.
Why this beats prompting it yourself
Standard RAG prompts often fail to self-correct when the retrieved context is irrelevant. This skill implements a formal state machine that prevents hallucinations by exiting early if no matches are found and rerunning research cycles if the verification agent detects unsupported claims.
Use cases
- Querying internal technical documentation for specific implementation details.
- Auditing legal or policy documents for contradictions against a query.
- Building a private research assistant that works entirely offline.
- Integrating a fact-checked QA pipeline into existing Python backends.
Known limitations
Requires Python 3.12 or higher. Performance is dependent on local hardware capabilities for running Ollama models. Smaller models under 3B parameters may struggle with the strict formatting required by the verification agent.
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.
Trust & safety
Security scan
Security scan passed 9 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.