Update lightrag/operate.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ghazi-raad 2025-11-26 23:18:20 +00:00 committed by GitHub
parent 56677ae466
commit 4e8e08cf4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2832,7 +2832,7 @@ async def extract_entities(
cache_keys_collector = []
# 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"
].format(**context_base)