
Neo4j Graphrag Skill
Wire Neo4j GraphRAG retrieval pipelines in Python—pick retrievers, LLM providers, and GraphRAG prompts for agent-backed Q&A over your graph.
Install
npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-graphrag-skillWhat is this skill?
- Retriever selection: Vector, Hybrid, VectorCypher, HybridCypher, Text2Cypher, and ToolsRetriever (LLM-routed multi-retri
- External vector DB retrievers (Weaviate, Pinecone, Qdrant) plus retrieval_query Cypher fragments, query_params, and filt
- GraphRAG pipeline wiring: retriever + LLM + prompt with providers (OpenAI, Anthropic, VertexAI, Bedrock, Cohere, Mistral
- Index creation, embedder setup, token usage tracking, and Cypher 25 SEARCH clause guidance
- LangChain and LlamaIndex integration paths; explicitly defers KG import, plain vector-only, GDS, and agent-memory to sib
Adoption & trust: 1 installs on skills.sh; 80 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
GraphRAG pipelines are product/backend capabilities you implement before ship, not launch-day marketing tasks. Retrievers, embedders, and GraphRAG orchestration live in the data and inference layer—backend subphase even when surfaced in a chat UI.
Common Questions / FAQ
Is Neo4j Graphrag Skill safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Neo4j Graphrag Skill
# Neo4j GraphRAG Skill ## When to Use - Building GraphRAG retrieval pipelines with `neo4j-graphrag` Python package - Choosing between VectorRetriever, HybridRetriever, VectorCypherRetriever, HybridCypherRetriever - Writing `retrieval_query` Cypher fragments for graph-augmented context - Wiring retriever + LLM into a `GraphRAG` pipeline - Using LLM-routed multi-retriever with `ToolsRetriever` - Debugging low retrieval quality - Integrating Neo4j with LangChain, LlamaIndex, or Haystack ## When NOT to Use - **KG construction from documents** → `neo4j-document-import-skill` - **Plain vector/semantic search without graph traversal** → `neo4j-vector-index-skill` - **Hybrid search that combines vector with fulltext or other ranked sources** → `neo4j-vector-index-skill` - **GDS algorithms (PageRank, Louvain, node embeddings)** → `neo4j-gds-skill` - **Agent long-term memory** → `neo4j-agent-memory-skill` - **Writing raw Cypher queries** → `neo4j-cypher-skill` --- ## Retriever Selection ``` Has fulltext index? YES → Hybrid variants (HybridRetriever / HybridCypherRetriever) NO → Vector variants (VectorRetriever / VectorCypherRetriever) Need graph traversal after vector lookup? YES → Cypher variants (VectorCypherRetriever / HybridCypherRetriever) NO → plain variants Natural-language-to-Cypher? → Text2CypherRetriever (no embedder needed) LLM should route between retrievers? → ToolsRetriever Vectors stored in external DB? → WeaviateNeo4jRetriever / PineconeNeo4jRetriever / QdrantNeo4jRetriever ``` | Retriever | Vector | Fulltext | Graph | Best For | |---|:---:|:---:|:---:|---| | `VectorRetriever` | ✓ | — | — | Baseline semantic search | | `HybridRetriever` | ✓ | ✓ | — | Better recall, no graph expansion | | `VectorCypherRetriever` | ✓ | — | ✓ | GraphRAG without fulltext | | `HybridCypherRetriever` | ✓ | ✓ | ✓ | **Production GraphRAG — default** | | `Text2CypherRetriever` | — | — | ✓ | NL→Cypher, no embedder | | `ToolsRetriever` | varies | varies | varies | LLM-routed multi-retriever | | `WeaviateNeo4jRetriever` | ✓ | — | ✓ | Vectors in Weaviate | | `PineconeNeo4jRetriever` | ✓ | — | ✓ | Vectors in Pinecone | | `QdrantNeo4jRetriever` | ✓ | — | ✓ | Vectors in Qdrant | --- ## Install ```bash pip install neo4j-graphrag[openai] # OpenAI LLM + embeddings pip install neo4j-graphrag[anthropic] # Anthropic Claude pip install neo4j-graphrag[google] # Vertex AI / Gemini pip install neo4j-graphrag[bedrock] # Amazon Bedrock (boto3) pip install neo4j-graphrag[cohere] # Cohere pip install neo4j-graphrag[mistralai] # MistralAI pip install neo4j-graphrag[ollama] # Ollama (local) pip install neo4j-graphrag[weaviate] # Weaviate external retriever pip install neo4j-graphrag[pinecone] # Pinecone external retriever pip install neo4j-graphrag[qdrant] # Qdrant external retriever ``` Requires: Python >= 3.10, `neo4j >= 5.17.0` (driver 6.x supported). --- ## Step 2 — Choose Retriever ``` Has fulltext