MCP-RAG:带有 RAG 的模型上下文协议🚀
使用 GroundX 和 OpenAI 实现的强大而高效的 RAG(检索增强生成),采用现代上下文处理 (MCP) 构建。
🌟 功能
高级 RAG 实现:利用 GroundX 进行高精度文档检索
模型上下文协议:与 MCP 无缝集成,增强上下文处理
类型安全:使用 Pydantic 构建,可进行强大的类型检查和验证
灵活的配置:通过环境变量轻松定制设置
文档提取:支持 PDF 文档提取和处理
智能搜索:具有评分的语义搜索功能
🛠️ 先决条件
Python 3.12 或更高版本
OpenAI API 密钥
GroundX API 密钥
MCP CLI 工具
📦安装
克隆存储库:
创建并激活虚拟环境:
⚙️ 配置
复制示例环境文件:
在
.env
中配置环境变量:
🚀 使用方法
启动服务器
使用以下命令运行检查服务器:
文档摄取
要获取新文档:
执行搜索
基本搜索查询:
使用自定义配置:
📚 依赖项
groundx
(≥2.3.0):核心 RAG 功能openai
(≥1.75.0):OpenAI API 集成mcp[cli]
(≥1.6.0):现代上下文处理工具ipykernel
(≥6.29.5):Jupyter 笔记本支持
🔒 安全
切勿提交包含 API 密钥的
.env
文件对所有敏感信息使用环境变量
定期轮换您的 API 密钥
监控 API 使用情况,防止任何未经授权的访问
🤝 贡献
分叉存储库
创建你的功能分支(
git checkout -b feature/amazing-feature
)提交您的更改(
git commit -m 'Add some amazing feature'
)推送到分支(
git push origin feature/amazing-feature
)打开拉取请求
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用 GroundX 和 OpenAI 实现检索增强生成 (RAG),允许用户通过现代上下文处理 (MCP) 提取文档并使用高级上下文处理执行语义搜索。
Related MCP Servers
- AsecurityAlicenseAqualityAn open-source platform for Retrieval-Augmented Generation (RAG). Upload documents and query them ⚡Last updated -13016MIT License
- -security-license-qualityA Retrieval-Augmented Generation server that enables semantic PDF search with OCR capabilities, allowing users to query document content through any MCP client and receive intelligent answers.Last updated -1Apache 2.0
- -securityFlicense-qualityA server that implements Retrieval-Augmented Generation using GroundX and OpenAI, enabling semantic search and document retrieval with Modern Context Processing for enhanced context handling.Last updated -
- -securityAlicense-qualityA server that integrates Retrieval-Augmented Generation (RAG) with the Model Control Protocol (MCP) to provide web search capabilities and document analysis for AI assistants.Last updated -3Apache 2.0