mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
Enhance question reformulation in ChatService
Updated the `embeddingQuestion` string to require that the reformulated question explicitly contains the subject of the original question. The reformulation must also be in the same language as the user's question and should not include phrases like "in this chat" or "search for."
This commit is contained in:
@@ -23,6 +23,7 @@ public class ChatService(IChatCompletionService chatCompletionService, Tokenizer
|
|||||||
---
|
---
|
||||||
{question}
|
{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.
|
||||||
""";
|
""";
|
||||||
|
|||||||
Reference in New Issue
Block a user