From 50fddeebbf4d3d145604fb05630835d2fd6d10e7 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 10 Sep 2025 12:07:34 +0800 Subject: [PATCH] fix: Remove conversation history from prompt template - Delete history section from prompt - Simplify user query response format - Remove {history} placeholder variable --- lightrag/prompt.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index 94896fb5..9b44edb0 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -272,9 +272,6 @@ You are a helpful assistant responding to user query about Document Chunks provi Generate a concise response based on Document Chunks and follow Response Rules, considering both the conversation history and the current query. Summarize all information in the provided Document Chunks, and incorporating general knowledge relevant to the Document Chunks. Do not include information not provided by Document Chunks. ----Conversation History--- -{history} - ---Document Chunks(DC)--- {content_data}