From 7922fff402042a8ebf829c28138d1e7a9ec974cb Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Thu, 20 Feb 2025 10:36:58 +0100 Subject: [PATCH] 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. --- SqlDatabaseVectorSearch/Services/ChatService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SqlDatabaseVectorSearch/Services/ChatService.cs b/SqlDatabaseVectorSearch/Services/ChatService.cs index 973fb2d..0dc6e3e 100644 --- a/SqlDatabaseVectorSearch/Services/ChatService.cs +++ b/SqlDatabaseVectorSearch/Services/ChatService.cs @@ -23,7 +23,7 @@ public class ChatService(IChatCompletionService chatCompletionService, Tokenizer --- {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. 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. """;