Update lightrag/operate.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
56677ae466
commit
4e8e08cf4d
1 changed files with 1 additions and 1 deletions
|
|
@ -2832,7 +2832,7 @@ async def extract_entities(
|
||||||
cache_keys_collector = []
|
cache_keys_collector = []
|
||||||
|
|
||||||
# Get initial extraction
|
# Get initial extraction
|
||||||
# Format system prompt once without input_text for OpenAI prompt caching
|
# Format system prompt without input_text for each chunk (enables OpenAI prompt caching across chunks)
|
||||||
entity_extraction_system_prompt = PROMPTS[
|
entity_extraction_system_prompt = PROMPTS[
|
||||||
"entity_extraction_system_prompt"
|
"entity_extraction_system_prompt"
|
||||||
].format(**context_base)
|
].format(**context_base)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue