Skip to content

Commit 7724a54

Browse files
committed
fix: handle None constraints in SchemaFromTextExtractor
1 parent 3fa6d44 commit 7724a54

File tree

1 file changed

+1
-1
lines changed
  • src/neo4j_graphrag/experimental/components

1 file changed

+1
-1
lines changed

src/neo4j_graphrag/experimental/components/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ async def run(self, text: str, examples: str = "", **kwargs: Any) -> GraphSchema
723723
"node_types": extracted_node_types,
724724
"relationship_types": extracted_relationship_types,
725725
"patterns": extracted_patterns,
726-
"constraints": extracted_constraints,
726+
"constraints": extracted_constraints or [],
727727
}
728728
)
729729

0 commit comments

Comments
 (0)