Skip to main content

Add your description here

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_pingcy_app_chatppt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fbaa65f77fc2a4dbde63dbf9f1f0ea342ed64490edd2d0b8cc3456c0345fc6bd
MD5 2db5648088800b6b2f21068914a6d15c
BLAKE2b-256 71ec780d91ead873c4ca9c54490c7263855ea43805de3694b78ba1fa6e425931

See more details on using hashes here.

File details

Details for the file iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_pingcy_app_chatppt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81b1e83263c1374b2e8e04eb9bc743c8c0864d9c6bdb54efdd343a1d477a8bec
MD5 2c54692d2e09b9a185e1f48a52840b57
BLAKE2b-256 39e5571a7d87288d0a4778101463c4ee1faa8d5903320130e2c0fb3c8684d55a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page