ChatPPT-MCP: 多文档RAG引擎的 MCP Server
一个基于MCP(Model Context Protocol)的多文档RAG(Retrieval-Augmented Generation)引擎应用,支持PPT文档的智能问答和分析。
功能特性
- 🔍 多文档处理: 支持索引多个PPT文档,基于视觉模型
- 🤖 智能问答: 基于RAG技术的文档问答
- 🔄 MCP集成: 使用Model Context Protocol进行工具调用
- 📊 交互式测试: 提供命令行交互测试界面
技术栈
- 后端框架: FastAPI
- 向量数据库: ChromaDB
- LLM: Doubao Vision
- 文档处理: LibreOffice, pypdfium2
- 协议: Model Context Protocol (MCP)
- 向量化: OpenAI Embeddings
安装使用
1. 安装依赖
pip install -e .
2. 环境配置
复制环境变量模板文件,并修改:
cp .env.example .env
3. 运行应用
RAG引擎测试模式
python rag_interactive_test.py
MCP测试模式(先sse启动:python mcp_ppt_server.py --transport sse)
python mcp_interactive_test.py
项目结构
app_chatppt/
├── src/ # 源代码目录
│ ├── multi_doc_rag_engine.py # RAG引擎核心
│ ├── document_processor.py # 文档处理器
│ └── ...
├── data/ # 示例数据
├── rag_interactive_test.py # 交互式测试入口
├── mcp_interactive_test.py # MCP集成测试
├── pyproject.toml # 项目配置
├── .env.example # 环境变量模板
└── README.md # 项目文档
许可证
MIT License
Metadata
Release files for iflow-mcp_pingcy_app_chatppt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz | 17.1 kB | Without provenance | Details for iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl |
Total release size: 36.3 kB
Release files / iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz
| Download URL | iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbaa65f77fc2a4dbde63dbf9f1f0ea342ed64490edd2d0b8cc3456c0345fc6bd
|
|
BLAKE2b-256 checksum How to use checksums |
71ec780d91ead873c4ca9c54490c7263855ea43805de3694b78ba1fa6e425931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81b1e83263c1374b2e8e04eb9bc743c8c0864d9c6bdb54efdd343a1d477a8bec
|
|
BLAKE2b-256 checksum How to use checksums |
39e5571a7d87288d0a4778101463c4ee1faa8d5903320130e2c0fb3c8684d55a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for iflow-mcp_pingcy_app_chatppt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.