From ba059ad8b0a7662b1c2b8b27305917407fe0c965 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Tue, 24 Jun 2025 02:42:42 -0700 Subject: [PATCH] Deduplicate passing chat history to extract question only in prompt Extract questions has chat history in prompt and in actual chat history. Only pass in prompt for now. Later update prompts to pass chat history in chat messages list for better truncation flexibility. --- src/khoj/routers/helpers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/khoj/routers/helpers.py b/src/khoj/routers/helpers.py index baeb9141..fe6cf1e7 100644 --- a/src/khoj/routers/helpers.py +++ b/src/khoj/routers/helpers.py @@ -1321,7 +1321,6 @@ async def extract_questions( query=prompt, query_images=query_images, query_files=query_files, - chat_history=chat_history, response_type="json_object", response_schema=DocumentQueries, user=user,