Spaces:
Sleeping
Sleeping
Update kig_core/graph_operations.py
Browse files
kig_core/graph_operations.py
CHANGED
|
@@ -28,6 +28,7 @@ def extract_cypher(text: str) -> str:
|
|
| 28 |
|
| 29 |
def format_doc_for_llm(doc: Dict[str, Any]) -> str:
|
| 30 |
"""Formats a document dictionary into a string for LLM context."""
|
|
|
|
| 31 |
return "\n".join(f"**{key}**: {value}" for key, value in doc.items() if value)
|
| 32 |
|
| 33 |
|
|
|
|
| 28 |
|
| 29 |
def format_doc_for_llm(doc: Dict[str, Any]) -> str:
|
| 30 |
"""Formats a document dictionary into a string for LLM context."""
|
| 31 |
+
print(f"Format doc for llm, DOC : {doc}")
|
| 32 |
return "\n".join(f"**{key}**: {value}" for key, value in doc.items() if value)
|
| 33 |
|
| 34 |
|