mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-08-22 15:38:11 +00:00
Update operate.py
This commit is contained in:
parent
b91d3912cc
commit
55cce796b9
@ -523,7 +523,7 @@ async def _build_local_query_context(
|
||||
|
||||
text_units_section_list = [["id", "content"]]
|
||||
for i, t in enumerate(use_text_units):
|
||||
text_units_section_list.append([i, t["content"].replace("\n", "").replace("\r", "")])
|
||||
text_units_section_list.append([i, t["content"]])
|
||||
text_units_context = list_of_list_to_csv(text_units_section_list)
|
||||
return f"""
|
||||
-----Entities-----
|
||||
@ -788,7 +788,7 @@ async def _build_global_query_context(
|
||||
|
||||
text_units_section_list = [["id", "content"]]
|
||||
for i, t in enumerate(use_text_units):
|
||||
text_units_section_list.append([i, t["content"].replace("\n", "").replace("\r", "")])
|
||||
text_units_section_list.append([i, t["content"]])
|
||||
text_units_context = list_of_list_to_csv(text_units_section_list)
|
||||
|
||||
return f"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user