From 3838f9d8e3ba52c384709f7c395f03009ec6a5fd Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 9 Mar 2023 12:11:44 -0600 Subject: [PATCH] Remove explicitly asking GPT to say I don't know in prompt for now GPT still mostly says I don't know when answer not in notes or chats But with this its more inclined to answer general questions not in chats or notes while informing user that the information is not from existing chats or notes --- src/khoj/processor/conversation/gpt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/khoj/processor/conversation/gpt.py b/src/khoj/processor/conversation/gpt.py index d17fc44c..dd322c4e 100644 --- a/src/khoj/processor/conversation/gpt.py +++ b/src/khoj/processor/conversation/gpt.py @@ -131,8 +131,7 @@ def converse(text, user_query, conversation_log=None, api_key=None, temperature= personality_primer = "You are a friendly, helpful personal assistant." conversation_primer = f""" -Using our chats and notes as context, answer the following question. -If the answer is not contained within the provided context, say "I don't know." and provide reason. +Using the notes and our chats as context, answer the following question. Current Date: {datetime.now().strftime("%Y-%m-%d")} Notes: