update
This commit is contained in:
@@ -226,7 +226,7 @@ function decisionMaker(a::T)::Dict{Symbol, Any} where {T<:agent}
|
||||
- Get to know type of wine the user is looking for e.g. red, white, sparkling, rose, dessert, fortified
|
||||
- Get to know what occasion the user is buying wine for
|
||||
- Get to know what characteristics of wine the user is looking for e.g. tannin, sweetness, intensity, acidity
|
||||
- Get to know what food the user will have with wine
|
||||
- Get to know what food will be served with wine
|
||||
|
||||
You must follow the following DON'T guidelines:
|
||||
- Don't mention any specific wine until you've checked your inventory.
|
||||
@@ -1024,6 +1024,8 @@ end
|
||||
# end
|
||||
|
||||
|
||||
|
||||
|
||||
"""
|
||||
|
||||
# Arguments
|
||||
@@ -1052,8 +1054,7 @@ function think(a::T) where {T<:agent}
|
||||
if actionname == "CHATBOX"
|
||||
(result=actioninput, errormsg=nothing, success=true)
|
||||
elseif actionname == "WINESTOCK"
|
||||
DBconnection = LibPQ.Connection("host=192.168.88.12 port=5432 dbname=yiem_wine_assistant user=yiem password=yiem@Postgres_0.0")
|
||||
winestock(actioninput, DBconnection, a.text2textInstructLLM)
|
||||
winestock(a, actioninput)
|
||||
else
|
||||
error("undefined LLM function. Requesting $actionname")
|
||||
end
|
||||
@@ -1097,7 +1098,7 @@ julia>
|
||||
function generatechat(a::T) where {T<:agent}
|
||||
systemmsg =
|
||||
"""
|
||||
You are a helpful sommelier working for a wine store.
|
||||
You are a polite sommelier working for a wine store.
|
||||
Your task is to help the user choose the best wine that match the user preferences from your inventory.
|
||||
|
||||
At each round of conversation, the user will give you the current situation:
|
||||
|
||||
Reference in New Issue
Block a user