eko9989 commited on
Commit
baafbb4
·
1 Parent(s): e7ef3b9

Update operate.py

Browse files
Files changed (1) hide show
  1. lightrag/operate.py +2 -2
lightrag/operate.py CHANGED
@@ -523,7 +523,7 @@ async def _build_local_query_context(
523
 
524
  text_units_section_list = [["id", "content"]]
525
  for i, t in enumerate(use_text_units):
526
- text_units_section_list.append([i, t["content"].replace("\n", "").replace("\r", "")])
527
  text_units_context = list_of_list_to_csv(text_units_section_list)
528
  return f"""
529
  -----Entities-----
@@ -788,7 +788,7 @@ async def _build_global_query_context(
788
 
789
  text_units_section_list = [["id", "content"]]
790
  for i, t in enumerate(use_text_units):
791
- text_units_section_list.append([i, t["content"].replace("\n", "").replace("\r", "")])
792
  text_units_context = list_of_list_to_csv(text_units_section_list)
793
 
794
  return f"""
 
523
 
524
  text_units_section_list = [["id", "content"]]
525
  for i, t in enumerate(use_text_units):
526
+ text_units_section_list.append([i, t["content"]])
527
  text_units_context = list_of_list_to_csv(text_units_section_list)
528
  return f"""
529
  -----Entities-----
 
788
 
789
  text_units_section_list = [["id", "content"]]
790
  for i, t in enumerate(use_text_units):
791
+ text_units_section_list.append([i, t["content"]])
792
  text_units_context = list_of_list_to_csv(text_units_section_list)
793
 
794
  return f"""