update
This commit is contained in:
@@ -19,14 +19,6 @@ msgMeta = GeneralUtils.generate_msgMeta(
|
||||
replyTopic = config[:servicetopic][:mqtttopic] # ask frontend reply to this instance_chat_topic
|
||||
)
|
||||
|
||||
# commConfig = Dict(
|
||||
# :mqttServerInfo=> config[:mqttServerInfo],
|
||||
# :receivemsg=> Dict(
|
||||
# :prompt=> config[:servicetopic][:mqtttopic], # topic to receive prompt i.e. frontend send msg to this topic
|
||||
# ),
|
||||
# :externalservice=> config[:externalservice],
|
||||
# )
|
||||
|
||||
function executeSQL(sql::T) where {T<:AbstractString}
|
||||
DBconnection = LibPQ.Connection("host=192.168.88.12 port=5432 dbname=yiem_wine_assistant user=yiem password=yiem@Postgres_0.0")
|
||||
result = LibPQ.execute(DBconnection, sql)
|
||||
@@ -56,15 +48,12 @@ function text2textInstructLLM(prompt::String)
|
||||
)
|
||||
)
|
||||
|
||||
_response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
|
||||
_response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=120)
|
||||
response = _response[:response][:text]
|
||||
|
||||
return response
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
# Instantiate an agent
|
||||
a = YiemAgent.sommelier(
|
||||
text2textInstructLLM,
|
||||
@@ -88,7 +77,7 @@ end
|
||||
main()
|
||||
|
||||
"""
|
||||
I'm joining a graduation party this evening. I have unlimited budget and I'm ok with wines in all price range. I want a bottle of full bodied, dry white wine from the U.S.
|
||||
I'm joining a graduation party this evening. I want a bottle of full bodied, dry white wine from the U.S. and I'm ok with all price range.
|
||||
Well, the party is small casual with close friends and no food serving.
|
||||
I'm open to suggestion since I have no specific idea about wine.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user