Spaces:
Sleeping
Sleeping
Update kig_core/graph_operations.py
Browse files
kig_core/graph_operations.py
CHANGED
|
@@ -33,8 +33,8 @@ def format_doc_for_llm(doc: Dict[str, Any]) -> str:
|
|
| 33 |
def format_summary_for_llm(doc: Dict[str, Any]) -> str:
|
| 34 |
"""Formats a document dictionnary to retrieve the summary of each document into a string for LLM context."""
|
| 35 |
print(f"doc is : {doc}")
|
|
|
|
| 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:
|
|
|
|
| 33 |
def format_summary_for_llm(doc: Dict[str, Any]) -> str:
|
| 34 |
"""Formats a document dictionnary to retrieve the summary of each document into a string for LLM context."""
|
| 35 |
print(f"doc is : {doc}")
|
| 36 |
+
data = ""
|
| 37 |
for key, value in doc.items():
|
|
|
|
| 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:
|