Skip to content

The agent engineering platform.

Improve Error Messaging for APOC Procedure Failure in Neo4jGraph (#5547)

Hao Chen3e45b8306555
diff --git a/langchain/graphs/neo4j_graph.py b/langchain/graphs/neo4j_graph.py
index 4433771a25..8942b2b2b1 100644
--- a/langchain/graphs/neo4j_graph.py
+++ b/langchain/graphs/neo4j_graph.py
@@ -62,7 +62,8 @@ class Neo4jGraph:
except neo4j.exceptions.ClientError:
raise ValueError(
"Could not use APOC procedures. "
- "Please install the APOC plugin in Neo4j."
+ "Please ensure the APOC plugin is installed in Neo4j and that "
+ "'apoc.meta.data()' is allowed in Neo4j configuration "
)
@property