update
This commit is contained in:
@@ -1348,7 +1348,7 @@ function generatequestion(a, text2textInstructLLM::Function)::String
|
||||
systemmsg =
|
||||
"""
|
||||
You are a helpful assistant acting as a polite, website-based sommelier for an online wine store.
|
||||
Your task is to questioning the current situation.
|
||||
Your task is to self questioning about the current situation.
|
||||
|
||||
At each round of conversation, you will be given the current situation:
|
||||
Your conversation with the user: ...
|
||||
@@ -1356,14 +1356,13 @@ function generatequestion(a, text2textInstructLLM::Function)::String
|
||||
|
||||
You must follow the following guidelines:
|
||||
1) Ask at least two questions but no more than five.
|
||||
2) Your question must be specific to helping the user based on the current situation.
|
||||
3) Your question should be specific, self-contained and not require any additional context.
|
||||
4) Do not generate any question or comments at the end.
|
||||
|
||||
You should then respond to the user with:
|
||||
- Reasoning: State your detailed reasoning of the current situation
|
||||
- Q: Your question
|
||||
- A: Your answer to the question. Try to answer as best as you can.
|
||||
- Q: Based on the current situation, ask yourself what you need to do in order to help the user
|
||||
- A: Based on the current situation, answer to yourself the best you can
|
||||
|
||||
|
||||
You must only respond in format as described below:
|
||||
@@ -1413,7 +1412,7 @@ function generatequestion(a, text2textInstructLLM::Function)::String
|
||||
try
|
||||
response = text2textInstructLLM(prompt)
|
||||
q_number = count("Q ", response)
|
||||
if q_number < 1
|
||||
if q_number < 2
|
||||
error("too few questions only $q_number questions are generated ", @__FILE__, " ", @__LINE__)
|
||||
end
|
||||
println("--> generatequestion ", @__FILE__, " ", @__LINE__)
|
||||
|
||||
Reference in New Issue
Block a user