Spaces:
Sleeping
Sleeping
Update kig_core/graph_operations.py
Browse files
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 |
|