From a00c44386e7b8342f26aed80f23b3b5dcd767db3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Jul 2025 09:29:22 +0000 Subject: [PATCH 1/2] Initial plan From 2a4ec0cf5b5452e61b2c6f81fd61a3d7b63e7665 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Jul 2025 09:33:52 +0000 Subject: [PATCH 2/2] Fix conversation summary prompt to use user query language Co-authored-by: dartpain <15183589+dartpain@users.noreply.github.com> --- application/api/answer/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index 2b9783f7..c9d5bf53 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -213,13 +213,13 @@ def save_conversation( "role": "assistant", "content": "Summarise following conversation in no more than 3 " "words, respond ONLY with the summary, use the same " - "language as the system", + "language as the user query", }, { "role": "user", "content": "Summarise following conversation in no more than 3 words, " "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, }, ]