Spaces:
Running
Running
Update kig_core/graph_operations.py
Browse files
kig_core/graph_operations.py
CHANGED
@@ -36,9 +36,9 @@ def format_summary_for_llm(doc: Dict[str, Any]) -> str:
|
|
36 |
for key, value in doc.items():
|
37 |
data = ""
|
38 |
if key == "s.summary" and value != None:
|
39 |
-
data += f"Solution of the key issue summarized : {value}"
|
40 |
if key == "n.summary" and value != None:
|
41 |
-
data += f"
|
42 |
return data
|
43 |
# --- Cypher Generation ---
|
44 |
def generate_cypher_auto(question: str) -> str:
|
|
|
36 |
for key, value in doc.items():
|
37 |
data = ""
|
38 |
if key == "s.summary" and value != None:
|
39 |
+
data += f"The document is a key issue. Solution of the key issue summarized : {value}"
|
40 |
if key == "n.summary" and value != None:
|
41 |
+
data += f"Document summarized : {value}"
|
42 |
return data
|
43 |
# --- Cypher Generation ---
|
44 |
def generate_cypher_auto(question: str) -> str:
|