update
This commit is contained in:
@@ -240,8 +240,9 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol, Any} where {T<:age
|
||||
1) Make an informed decision about what you need to do to achieve the goal
|
||||
2) Thanks the user when they don't need any further assistance and invite them to comeback next time
|
||||
|
||||
Your responsibility does not include:
|
||||
1) Processing sales orders or engaging in any other sales-related activities.
|
||||
Your responsibility do not include:
|
||||
1) Asking or guiding the user to make a purchase
|
||||
2) Processing sales orders or engaging in any other sales-related activities
|
||||
|
||||
At each round of conversation, you will be given the current situation:
|
||||
Recap: ...
|
||||
@@ -276,7 +277,7 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol, Any} where {T<:age
|
||||
- PRESENTBOX which you can use to introduce / suggest / recommend wines you just found in the database to the user. It is better than the CHATBOX function for presenting wines.
|
||||
The input is instructions on how you want the presentation to be conducted.
|
||||
Here are some input example,
|
||||
"First, provide detailed introductions of the wines to help the user make an informed choice.
|
||||
"First, provide detailed introductions of the wines.
|
||||
Second, if there are multiple wines, offer a thorough comparison of each option, highlighting their differences.
|
||||
Third, explain the potential impact each option could bring to the user."
|
||||
- ENDCONVERSATION which you can use when you want to finish the conversation with the user. The input is "NA".
|
||||
@@ -1032,8 +1033,8 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F
|
||||
2) Ordering the wines.
|
||||
|
||||
At each round of conversation, you will be given the current situation:
|
||||
Your conversation with the user: ...
|
||||
Your thoughts: Your current thoughts in your mind.
|
||||
Your ongoing conversation with the user: ...
|
||||
Your thoughts: Your current thoughts in your mind
|
||||
Context: ...
|
||||
|
||||
You MUST follow the following guidelines:
|
||||
@@ -1067,7 +1068,7 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F
|
||||
for attempt in 1:10
|
||||
usermsg =
|
||||
"""
|
||||
Your conversation with the user: $chathistory
|
||||
Your ongoing conversation with the user: $chathistory
|
||||
$context
|
||||
Your thoughts: $(memory[:CHATBOX])
|
||||
$errornote
|
||||
|
||||
Reference in New Issue
Block a user