# Docchat AI

> Command and control for a Llama 3.3 RAG stack with document Q&A, ReAct data analysis, and automated email reporting.

Docchat AI is a free AI agent skill on Agensi by Ghaith Bouslimi, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ghaith Bouslimi](https://www.agensi.io/creators/ghaith-bouslimi)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docchat-ai
- Tags: llm-ops, rag, fastapi, data-analysis, llama3

## About this skill

Manually managing RAG pipelines, data analyst agents, and API lifecycles is a fragmented process. This skill provides a unified Python-based controller for the DocChat AI stack, allowing you to orchestrate FastAPI backends, Streamlit frontends, and Llama 3.3 70B models via a single CLI.

### What it does
- **Manage stack lifecycle** through automated setup, dependency installation, and health monitoring for FastAPI and Streamlit.
- **Execute document RAG** by uploading PDF, DOCX, TXT, or MD files to a retriever for grounded Q&A with optional Tavily web search.
- **Run ReAct data analysis** on CSV or Excel files to perform correlations, statistics, and chart generation via Plotly.
- **Handle persistence** by managing chat history and notes in SQLite while tracking volatile in-memory session states.
- **Automate reporting** by drafting and sending emails via Resend based on analysis results or document summaries.

### How it works
1. Use `setup` to initialize the virtual environment and `.env` template, followed by `start` to launch the API and UI services.
2. Invoke `rag` with local document paths to build an in-memory vector index and run multi-turn questions.
3. Use `analyst` to process spreadsheets, calling specific tools for data exploration, statistical analysis, and chart production.
4. Access the `chat` command for general LLM interactions or consult `reference/notes.md` for direct REST API endpoint mapping.

### Frameworks & tools
This skill interfaces with a stack comprising FastAPI, Streamlit, and Llama 3.3 70B hosted on Groq. It utilizes Plotly for visualization, Resend for email delivery, Tavily for web search, and `all-MiniLM-L6-v2` for local embeddings.

### Why this beats prompting it yourself
Raw prompting cannot manage background processes or handle the multi-step ReAct logic required for accurate data analysis. This skill automates the tool-calling sequence and state management, ensuring LLM responses are grounded in actual file data rather than hallucinations.

### Use cases
- Query multiple Q3 review documents to identify specific budget risks and sources.
- Generate and export regional revenue bar charts from raw sales spreadsheets.
- Perform health checks and troubleshooting on local RAG deployments.
- Draft and send automated email reports based on analyzed data trends.

### Known limitations
Retrievers and analyst agents are stored in memory and are lost if the API process restarts. The data analyst uses eval for pandas code, requiring trusted data and environments.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Docchat AI skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does this skill solve for managing AI workflows?

This skill provides a unified controller to manage a document Q&A and data analysis stack. It solves the problem of fragmented workflows by automating RAG pipelines, handling complex ReAct data analysis logic, and managing background services like FastAPI and Streamlit through a single interface.

### What external accounts or API keys are required to use this skill?

To use all features, you will need a Groq API key for the Llama 3.3 70B model. Optional integrations require a Tavily API key for web search and a Resend API key for automated email reporting.

### What kinds of outputs and file formats can I expect from the analysis tools?

The skill generates grounded answers from PDF, DOCX, TXT, and MD files, often including specific source citations. For data tasks, it produces statistical correlations, CSV exports, and Plotly JSON charts which can be rendered into HTML visualizations.

### What are the primary limitations or data persistence issues I should know about?

Retrievers and analyst agents are stored in volatile memory, meaning data is lost if the API process restarts. Additionally, the data analyst uses code execution for pandas operations, so it should only be used with trusted data in secure environments.

### How should I direct my AI agent to interact with this skill?

You can ask your agent to set up the environment, start the UI and API services, or perform specific tasks like querying a group of documents for risks or generating a revenue bar chart from a spreadsheet.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
