Skip to content

Commit

Permalink
Update operate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoswift authored Oct 31, 2024
1 parent 7d884b9 commit 11b9403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightrag/operate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-----
Expand Down Expand Up @@ -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"""
Expand Down

0 comments on commit 11b9403

Please sign in to comment.