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
This commit is contained in:
Debanjum Singh Solanky 2023-03-09 12:11:44 -06:00
parent f7b8cdd02e
commit 3838f9d8e3

View file

@ -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." personality_primer = "You are a friendly, helpful personal assistant."
conversation_primer = f""" conversation_primer = f"""
Using our chats and notes as context, answer the following question. Using the notes and our chats as context, answer the following question.
If the answer is not contained within the provided context, say "I don't know." and provide reason.
Current Date: {datetime.now().strftime("%Y-%m-%d")} Current Date: {datetime.now().strftime("%Y-%m-%d")}
Notes: Notes: