mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix format of user query during general conversation with Llama 2
This commit is contained in:
parent
48e5ac0169
commit
ded606c7cb
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ def converse_offline(
|
|||
# Get Conversation Primer appropriate to Conversation Type
|
||||
# TODO If compiled_references_message is too long, we need to truncate it.
|
||||
if compiled_references_message == "":
|
||||
conversation_primer = prompts.conversation_llamav2.format(query=user_query)
|
||||
conversation_primer = user_query
|
||||
else:
|
||||
conversation_primer = prompts.notes_conversation_llamav2.format(
|
||||
query=user_query, references=compiled_references_message
|
||||
|
|
Loading…
Reference in a new issue