mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
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:
@@ -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.
|
||||||
""";
|
""";
|
||||||
|
|||||||
Reference in New Issue
Block a user