mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Fix conversation summary prompt to use user query language
Co-authored-by: dartpain <15183589+dartpain@users.noreply.github.com>
This commit is contained in:
@@ -213,13 +213,13 @@ def save_conversation(
|
|||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "Summarise following conversation in no more than 3 "
|
"content": "Summarise following conversation in no more than 3 "
|
||||||
"words, respond ONLY with the summary, use the same "
|
"words, respond ONLY with the summary, use the same "
|
||||||
"language as the system",
|
"language as the user query",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": "Summarise following conversation in no more than 3 words, "
|
"content": "Summarise following conversation in no more than 3 words, "
|
||||||
"respond ONLY with the summary, use the same language as the "
|
"respond ONLY with the summary, use the same language as the "
|
||||||
"system \n\nUser: " + question + "\n\n" + "AI: " + response,
|
"user query \n\nUser: " + question + "\n\n" + "AI: " + response,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user