Overview of available Retrievers
mainThe neo4j-graphrag package provides several retriever implementations to fetch context from Neo4j or external vector databases:
- VectorRetriever: Similarity search using a Neo4j vector index. Returns matched
nodeand similarityscore. - VectorCypherRetriever: Similarity search followed by a custom Cypher query to fetch additional graph context.
- HybridRetriever: Combines vector search and full-text index search in Neo4j.
- HybridCypherRetriever: Hybrid search followed by a custom Cypher traversal.
- ToolsRetriever: Uses an LLM to select and execute multiple tools (like other retrievers) based on the query.
- Text2Cypher: Translates natural language into Cypher queries to fetch structured data.
- External Vector Database Retrievers:
WeaviateNeo4jRetriever(for Weaviate)PineconeNeo4jRetriever(for Pinecone)QdrantNeo4jRetriever(for Qdrant)
All retrievers expose a .search() method.