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
|
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
|
2) Thanks the user when they don't need any further assistance and invite them to comeback next time
|
||||||
|
|
||||||
Your responsibility does not include:
|
Your responsibility do not include:
|
||||||
1) Processing sales orders or engaging in any other sales-related activities.
|
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:
|
At each round of conversation, you will be given the current situation:
|
||||||
Recap: ...
|
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.
|
- 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.
|
The input is instructions on how you want the presentation to be conducted.
|
||||||
Here are some input example,
|
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.
|
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."
|
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".
|
- 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.
|
2) Ordering the wines.
|
||||||
|
|
||||||
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 ongoing conversation with the user: ...
|
||||||
Your thoughts: Your current thoughts in your mind.
|
Your thoughts: Your current thoughts in your mind
|
||||||
Context: ...
|
Context: ...
|
||||||
|
|
||||||
You MUST follow the following guidelines:
|
You MUST follow the following guidelines:
|
||||||
@@ -1067,7 +1068,7 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F
|
|||||||
for attempt in 1:10
|
for attempt in 1:10
|
||||||
usermsg =
|
usermsg =
|
||||||
"""
|
"""
|
||||||
Your conversation with the user: $chathistory
|
Your ongoing conversation with the user: $chathistory
|
||||||
$context
|
$context
|
||||||
Your thoughts: $(memory[:CHATBOX])
|
Your thoughts: $(memory[:CHATBOX])
|
||||||
$errornote
|
$errornote
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ a = YiemAgent.sommelier(
|
|||||||
querySQLVectorDB,
|
querySQLVectorDB,
|
||||||
addSQLVectorDB;
|
addSQLVectorDB;
|
||||||
name= "Janie",
|
name= "Janie",
|
||||||
id= sessionId, # agent instance id
|
id= "tempId", # agent instance id
|
||||||
)
|
)
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
|
|||||||
Reference in New Issue
Block a user