From 188079e30f4210c85f7f9bed6f5eaa35676aa6c6 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 17 Nov 2023 00:13:26 +0000 Subject: [PATCH] update identifyUserIntention() --- src/interface.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 87f75c6..427dbd6 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -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)