Supports extracting content from JPEG images using the unstructured library to index visual data for search and retrieval.
Utilizes Neo4j as a graph database to store and query document relationships, supporting vector, graph, and full-text search with relationship-based reranking.
Supports local Ollama instances for embedding and LLM tasks, allowing for a privacy-focused, local-first RAG implementation.
Integrates with OpenAI-compatible APIs for generating embeddings, performing graph-based reasoning, and reranking search results.
Allows for the ingestion and processing of Emacs Org-mode files, incorporating structured documentation into the searchable knowledge base.
Enables the ingestion and semantic indexing of XML documents for retrieval-augmented generation tasks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@local-RAG-backendSearch my local documents for details on the new system architecture"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
local-RAG-backend
ローカル環境のdocker composeで完結するRAGシステムのバックエンドです。各種ドキュメントを登録し、MCP serverで検索できます。
特徴
幅広いファイル形式に対応:
unstructuredを利用して、PDF、Office、テキスト、画像など28種類のファイル形式に対応しています。MCP検索機能:
graphiti MCP Serverの実装を流用して、Model Context Protocol対応の検索を提供します。高度なRAG機能:
graphitiを利用して、ベクトル検索 + グラフ検索 + 全文検索の結果を、関係性でリランキングした結果を返します。時系列の関係性の変化を追跡:
graphitiのエピソード機能で、登録したドキュメント内の概念の関係性の変化を追跡できます。
Getting Started
1. 前提
OpenAPI互換のLLM APIが利用できる
利用するモデル
ベクトル検索に利用するEmbeddingモデル
グラフ検索に利用するLLMモデル
リランキングに利用する軽量なLLMモデル
EmbeddingモデルとLLMモデルは、別のURLを指定できます
例:
Embeddingモデル:
ローカルのOllamaLMモデル:
OpenAIグラフ検索:
o4-miniリランキング:
gpt-4.1-nano
注意:
LLMモデルをローカルのOllamaで利用する場合、フォーマット指定のレスポインスを、数秒で返すパフォーマンスが必要です。
OpenRouterは rate limit エラーになりやすいので、ルーティング先を直接指定することをおすすめします。
2. インストール
3. ドキュメント登録
サポートファイル形式
カテゴリ | 対応形式 |
テキスト | txt, md, rst, org |
Web | html, xml |
Microsoft Office | doc, docx, ppt, pptx, xls, xlsx |
OpenDocument | odt |
リッチテキスト | rtf |
eBook | epub |
データ | csv, tsv |
メール | eml, msg, p7s |
画像 | bmp, heic, jpeg, jpg, png, tiff, tif |
ディレクトリ構成
4. ナレッジ検索
n8n / AI Agent node や Claude DeskctopなどのMCP Clientから接続
{ "mcpServers": { "graphiti-memory": { "transport": "sse", "url": "http://localhost:8000/sse" } } }
利用可能なMCP Tools
設定
.envファイルの例
既知の課題
ナレッジ検索の内部処理の可視化(ログ分析は可能)