Revert "Use notes in system prompt, rather than in the user message"

This reverts commit e695b9ab8c.
This commit is contained in:
Debanjum Singh Solanky
2023-11-10 21:44:53 -08:00
parent b6441683c6
commit 8585976f37
2 changed files with 2 additions and 23 deletions

View File

@@ -111,15 +111,13 @@ def converse(
return iter([prompts.no_notes_found.format()])
elif conversation_command == ConversationCommand.General or is_none_or_empty(compiled_references):
conversation_primer = prompts.general_conversation.format(query=user_query)
personality = prompts.personality.format(current_date=current_date)
else:
conversation_primer = prompts.general_conversation.format(query=user_query)
personality = prompts.personality_with_notes.format(current_date=current_date, references=compiled_references)
conversation_primer = prompts.notes_conversation.format(query=user_query, references=compiled_references)
# Setup Prompt with Primer or Conversation History
messages = generate_chatml_messages_with_context(
conversation_primer,
personality,
prompts.personality.format(current_date=current_date),
conversation_log,
model,
max_prompt_size,