update identifyUserIntention()
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user