heymenn commited on
Commit
4180edf
·
verified ·
1 Parent(s): a0f42c0

Update kig_core/graph_operations.py

Browse files
Files changed (1) hide show
  1. kig_core/graph_operations.py +2 -0
kig_core/graph_operations.py CHANGED
@@ -32,12 +32,14 @@ def format_doc_for_llm(doc: Dict[str, Any]) -> str:
32
 
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
  for key, value in doc.items():
36
  data = ""
37
  if key == "s.summary" and value != None:
38
  data += f"The document is a key issue. Solution of the key issue summarized : {value}"
39
  if key == "n.summary" and value != None:
40
  data += f"Document summarized : {value}"
 
41
  return data
42
 
43
  # --- Cypher Generation ---
 
32
 
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:
41
  data += f"Document summarized : {value}"
42
+ print(f"data is : {data}")
43
  return data
44
 
45
  # --- Cypher Generation ---