Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix: Resolve undefined Cypher path in multi_hop_reasoning

KaifAhmad17a25a7791ef1
diff --git a/semantica/context/decision_query.py b/semantica/context/decision_query.py
index 20a208d2..b9bd3272 100644
--- a/semantica/context/decision_query.py
+++ b/semantica/context/decision_query.py
@@ -508,7 +508,7 @@ class DecisionQuery:
MATCH (start {{id: $start_entity}})
CALL {{
WITH start
- MATCH (start)-[*1..{max_hops}]-(d:Decision)
+ MATCH path = (start)-[*1..{max_hops}]-(d:Decision)
RETURN d, length(path) as hop_count
}}
RETURN d, hop_count