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
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
GroundX と OpenAI を使用して検索拡張生成を実装し、強化されたコンテキスト処理のための最新のコンテキスト処理によるセマンティック検索とドキュメント検索を可能にするサーバー。
Related MCP Servers
- -securityAlicense-qualityA server that enables document searching using Vertex AI with Gemini grounding, improving search results by grounding responses in private data stored in Vertex AI Datastore.Last updated -29Apache 2.0
- -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-qualityImplements Retrieval-Augmented Generation (RAG) using GroundX and OpenAI, allowing users to ingest documents and perform semantic searches with advanced context handling through Modern Context Processing (MCP).Last updated -4
- -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