MCP-RAG: RAG を使用したモデルコンテキストプロトコル 🚀
GroundX と OpenAI を使用し、Modern Context Processing (MCP) で構築された強力かつ効率的な RAG (Retrieval-Augmented Generation) 実装。
🌟 特徴
高度な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 を使用して Retrieval-Augmented Generation (RAG) を実装し、ユーザーがドキュメントを取り込み、Modern Context Processing (MCP) による高度なコンテキスト処理でセマンティック検索を実行できるようにします。
Related MCP Servers
- AsecurityAlicenseAqualityAn open-source platform for Retrieval-Augmented Generation (RAG). Upload documents and query them ⚡Last updated -13217MIT 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.
- -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