Docchat RAG

    by Muhammad Salihu

    1

    Privacy-first local RAG engine with multi-agent fact-verification, hybrid retrieval, and Docling integration.

    $13

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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:

    FeatureConfiguration ValueDescription
    BM25 Weight0.4Lexical search weight for keyword matching.
    ChromaDB Weight0.6Dense vector weight for semantic similarity.
    Vector K10Number of top chunks retrieved from ChromaDB.
    Embedding Modelnomic-embed-textUsed for generating dense vector representations.

    Verification Report

    • Supported: YES
    • Relevant: YES
    • Contradictions: NONE
    • Supported Claims: The system uses an EnsembleRetriever combining BM25Retriever and ChromaDB. 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_WEIGHTS environment variable in the .env file.

    Next steps

    1. To test different balances, update HYBRID_RETRIEVER_WEIGHTS in your .env and restart the agent.
    2. If you change the embedding model, run rm -rf chroma_db/ to re-index your documents.
    3. Use the test/test1.py script to benchmark how these weights affect retrieval for your specific document set.
    I have analyzed README.md

    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

    1. Environment check verifies the Ollama server is active and pulls the required Llama3 and Nomic models.
    2. Ingestion pipeline processes local files through DocumentProcessor to generate header-aware Markdown chunks.
    3. Index creation builds the hybrid ensemble retriever using RetrieverBuilder with configurable lexical and vector weights.
    4. Agent execution triggers the AgentWorkflow to move from relevance checking to final fact-checking.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Docchat RAG uses a multi-agent LangGraph workflow that includes a dedicated verification loop to audit claims for contradictions and ensure every part of the answer is grounded in your uploaded documents.

    This skill is designed for 100% local execution using Ollama; it requires Python 3.12+ and a machine capable of running models like Llama3 and Nomic embeddings on-premise.

    Yes, it uses Docling to intelligently parse PDF, DOCX, and TXT files into header-aware Markdown, ensuring context is preserved even in complex, structured documents.

    Your purchase includes the full Python source code, the LangGraph agent orchestration logic, the hybrid retrieval engine (BM25 + ChromaDB), and the Gradio web interface.

    The skill uses an automated caching system with SHA-256 deduplication, allowing it to recognize previously processed files and skip redundant indexing to save time.

    While compatible with most local models via Ollama, it is recommended to use models with at least 7B-8B parameters to ensure the verification agent can follow strict formatting and reasoning logic.

    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.