mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Fix format of user query during general conversation with Llama 2
This commit is contained in:
@@ -125,7 +125,7 @@ def converse_offline(
|
|||||||
# Get Conversation Primer appropriate to Conversation Type
|
# Get Conversation Primer appropriate to Conversation Type
|
||||||
# TODO If compiled_references_message is too long, we need to truncate it.
|
# TODO If compiled_references_message is too long, we need to truncate it.
|
||||||
if compiled_references_message == "":
|
if compiled_references_message == "":
|
||||||
conversation_primer = prompts.conversation_llamav2.format(query=user_query)
|
conversation_primer = user_query
|
||||||
else:
|
else:
|
||||||
conversation_primer = prompts.notes_conversation_llamav2.format(
|
conversation_primer = prompts.notes_conversation_llamav2.format(
|
||||||
query=user_query, references=compiled_references_message
|
query=user_query, references=compiled_references_message
|
||||||
|
|||||||
Reference in New Issue
Block a user