From 4e8e08cf4d9f09ce6e5bfb9a22849379fb0a44f6 Mon Sep 17 00:00:00 2001 From: Ghazi-raad Date: Wed, 26 Nov 2025 23:18:20 +0000 Subject: [PATCH] Update lightrag/operate.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- lightrag/operate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 521e8b03..ab9d957e 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -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)