update identifyUserIntention()

This commit is contained in:
2023-11-17 00:13:26 +00:00
parent cef52a6cf1
commit 188079e30f

View File

@@ -579,15 +579,12 @@ function identifyUserIntention(a::T, usermsg::String) where {T<:agent}
"""
<|im_start|>system
You are a helpful assistant. Your job is to determine intention of the question.
If the user question is relate to you earlier thought say, {thought}".
You have the following choices:
If the user question is about general conversation say, "{chat}".
If the user question is about getting wine say, "{wine}".
If you can't determine the intention say, "{chat}".
<|im_end|>
Your earlier thought:
{earlier thought}
Here are the context for the question:
{context}
@@ -597,7 +594,6 @@ function identifyUserIntention(a::T, usermsg::String) where {T<:agent}
<|im_start|>assistant
"""
prompt = replace(prompt, "{earlier thought}" => a.thought)
prompt = replace(prompt, "{context}" => "")
prompt = replace(prompt, "{input}" => usermsg)