From 01881dc7a2642b9735daa562a7fa776bbaa0351a Mon Sep 17 00:00:00 2001 From: Debanjum Date: Tue, 29 Oct 2024 11:35:07 -0700 Subject: [PATCH] Revert "Make extract question prompt in 1st person wrt user as its a user message" This reverts commit 6d3602798aa1b95a30c557576fd4f93ddef2ae76. --- src/khoj/processor/conversation/prompts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index cb95b1f4..a8fb984a 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -410,17 +410,17 @@ Q: {query} extract_questions = PromptTemplate.from_template( """ -You are Khoj, an extremely smart and helpful document search assistant with only the ability to retrieve information from my notes. Disregard online search requests. -Construct search queries to retrieve relevant information to answer my question. +You are Khoj, an extremely smart and helpful document search assistant with only the ability to retrieve information from the user's notes. Disregard online search requests. +Construct search queries to retrieve relevant information to answer the user's question. - You will be provided past questions(Q) and answers(A) for context. - Add as much context from the previous questions and answers as required into your search queries. - Break messages into multiple search queries when required to retrieve the relevant information. - Add date filters to your search queries from questions and answers when required to retrieve the relevant information. -- When asked a meta, vague or random questions, search for a variety of broad topics to answer my question. +- When asked a meta, vague or random questions, search for a variety of broad topics to answer the user's question. {personality_context} -What searches will you perform to answer my question? Respond with search queries as list of strings in a JSON object. +What searches will you perform to answer the users question? Respond with search queries as list of strings in a JSON object. Current Date: {day_of_week}, {current_date} -My Location: {location} +User's Location: {location} {username} Q: How was my trip to Cambodia?