
Knowledge graph with community detection for complex, multi-hop reasoning across documents.
Graph RAG builds a knowledge graph from your documents, extracting entities and relationships. It uses community detection to group related concepts, enabling complex multi-hop reasoning that vector search alone cannot achieve.
Graph RAG shines with document collections that reference each other:
| Setting | Recommended Value |
|---|---|
| Chunking Method | Document-Based |
| Chunk Size | 1000-2000 tokens |
| Overlap | 100 tokens |
| Respect Sentence Boundaries | Enabled |
Graph RAG requires larger chunks to preserve entity context. Avoid chunk sizes below 500 tokens.
| Setting | Value |
|---|---|
| Search Method | Graph |
| Embedding Model | Any supported model |
| Community Detection | Enabled |
| LLM for Extraction | Enabled |
| Parameter | Default | Description |
|---|---|---|
| Entity Types | Auto | Entity categories to extract |
| Relationship Types | Auto | Relationship patterns to detect |
| Min Community Size | 3 | Minimum entities per community |
| Max Communities | 50 | Cap on community count |
Generate your API key and integrate using REST API, Python SDK, or MCP Protocol:
curl -X POST "https://api.guidedmind.ai/rag/search" \
-H "X-API-Key: rk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"query": "How does the expense policy relate to travel approval?",
"options": {
"limit": 5,
"threshold": 0.5,
"search_method": "graph"
}
}'After processing, access the Graph Editor from your project dashboard to:
| Scenario | Fit |
|---|---|
| Cross-document relationships | Excellent |
| Multi-hop reasoning | Excellent |
| Knowledge discovery | Excellent |
| Complex domain mapping | Good |
| Simple Q&A | Overkill |
| Real-time search needed | Poor (slower) |
| Metric | Value |
|---|---|
| Build Time | 5-30 min (depends on doc count) |
| Query Latency | 300-800ms |
| Storage Overhead | 2-3x document size |
| Best For | Under 1000 documents |
Graph RAG is compute-intensive. Start with a small document set (50-100 docs) to validate quality before scaling up.
| Feature | Naive | Hybrid | Graph |
|---|---|---|---|
| Semantic Search | ✅ | ✅ | ✅ |
| Keyword Search | ❌ | ✅ | ✅ |
| Cross-Document Links | ❌ | ❌ | ✅ |
| Multi-Hop Reasoning | ❌ | ❌ | ✅ |
| Build Speed | Fast | Fast | Slow |
| Query Speed | Fast | Medium | Slow |
| Storage | Low | Low | High |