Python SDK for Neo4j GraphRAG app development
Top 50.7% on sourcepulse
This package provides a Python SDK for building Graph Retrieval Augmented Generation (GraphRAG) applications, leveraging Neo4j's graph database capabilities. It's designed for developers seeking a robust, first-party solution for integrating knowledge graphs with LLMs, offering enhanced retrieval and question-answering functionalities.
How It Works
The library facilitates GraphRAG by enabling the construction and querying of knowledge graphs. It supports building knowledge graphs from text or PDFs using SimpleKGPipeline
or the more customizable Pipeline
class, which extract entities and relationships. For retrieval, it offers various retrievers, including VectorRetriever
for similarity searches against vector indexes stored in Neo4j, and integrates with LLM providers for generation.
Quick Start & Requirements
pip install neo4j-graphrag
openai
, ollama
) and vector databases (e.g., weaviate
, pinecone
) can be installed with extras: pip install "neo4j-graphrag[openai]"
.Highlighted Details
Text2CypherRetriever
for natural language to Cypher query translation.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
4 days ago
1 day