heymenn commited on
Commit
46cff65
·
verified ·
1 Parent(s): 1071982

Update kig_core/graph_operations.py

Browse files
Files changed (1) hide show
  1. kig_core/graph_operations.py +1 -1
kig_core/graph_operations.py CHANGED
@@ -120,7 +120,7 @@ def generate_cypher_guided(question: str, plan_step: int) -> str:
120
  # Be cautious about injection if concept names can contain special chars. Binding is preferred.
121
  escaped_concept = selected_concept.replace("'", "\\'") # Basic escaping
122
  cypher = f"MATCH (c:Concept {{name: '{escaped_concept}'}})-[:RELATED_TO]-{target} RETURN {fields}"
123
-
124
  logger.info(f"Generated guided Cypher: {cypher}")
125
  return cypher
126
 
 
120
  # Be cautious about injection if concept names can contain special chars. Binding is preferred.
121
  escaped_concept = selected_concept.replace("'", "\\'") # Basic escaping
122
  cypher = f"MATCH (c:Concept {{name: '{escaped_concept}'}})-[:RELATED_TO]-{target} RETURN {fields}"
123
+ print(f"Cypher request is : {cypher}")
124
  logger.info(f"Generated guided Cypher: {cypher}")
125
  return cypher
126