Enhance question reformulation instructions

Added a line to the `embeddingQuestion` string to emphasize that the reformulated question must explicitly contain the subject. This change clarifies the requirements for the chat service's functionality.
This commit is contained in:
Marco Minerva
2025-02-20 10:36:58 +01:00
parent 8472775333
commit 7922fff402
@@ -23,7 +23,7 @@ public class ChatService(IChatCompletionService chatCompletionService, Tokenizer
--- ---
{question} {question}
--- ---
The reformulation must always explicitly contain the subject of the question. The reformulation must always explicitly contain the subject of the question.
You must reformulate the question in the same language of the user's question. For example, it the user asks a question in English, the answer must be in English. You must reformulate the question in the same language of the user's question. For example, it the user asks a question in English, the answer must be in English.
Never add "in this chat", "in the context of this chat", "in the context of our conversation", "search for" or something like that in your answer. Never add "in this chat", "in the context of this chat", "in the context of our conversation", "search for" or something like that in your answer.
"""; """;