Neo4jGraphCapability

Neo4jGraphCapability(query_engine: Neo4jGraphQueryEngine)

The Neo4j graph capability integrates Neo4j Property graph into a graph rag agent.
Ref: https://neo4j.com/labs/genai-ecosystem/llamaindex/#_property_graph_constructing_modules

For usage, please refer to example notebook/agentchat_graph_rag_neo4j.ipynb

Initialize GraphRAG capability with a graph query engine

Parameters:
NameDescription
query_engineType: Neo4jGraphQueryEngine

Instance Methods

add_to_agent

add_to_agent(self, agent: ConversableAgent) -> None

Add Neo4j GraphRAG capability to a UserProxyAgent.
The restriction to a UserProxyAgent to make sure the returned message only contains information retrieved from the graph DB instead of any LLMs.

Parameters:
NameDescription
agentType: ConversableAgent