Skip to content

Commit

Permalink
fix entity extract
Browse files Browse the repository at this point in the history
  • Loading branch information
LarFii committed Dec 4, 2024
1 parent f3ae4fc commit 7f8460c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lightrag/operate.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ async def _process_single_content(chunk_key_dp: tuple[str, TextChunkSchema]):
chunk_key = chunk_key_dp[0]
chunk_dp = chunk_key_dp[1]
content = chunk_dp["content"]
hint_prompt = entity_extract_prompt.format(**context_base, input_text=content)
# hint_prompt = entity_extract_prompt.format(**context_base, input_text=content)
hint_prompt = entity_extract_prompt.format(**context_base, input_text="{input_text}").format(**context_base, input_text=content)

final_result = await use_llm_func(hint_prompt)
history = pack_user_ass_to_openai_messages(hint_prompt, final_result)
for now_glean_index in range(entity_extract_max_gleaning):
Expand Down

0 comments on commit 7f8460c

Please sign in to comment.