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