From 1513fec11a9dc930fccf1369a502f3fa0d1e3596 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 11 Feb 2024 18:53:37 +0700 Subject: [PATCH] update --- src/interface.jl | 10 +++++----- src/utils.jl | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index b4f8f76..6b7dbc4 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -349,9 +349,9 @@ function selfAwareness(a::agentReflex) Use the following format strictly: - Info extraction: from the latest observed result, repeat every word relates to wine + Info extraction: break the latest observed result down to the smallest unit of information then repeat every important word Info mapping: based on extracted info, explicitly state what each info could possibly match which keyword memory's key - Info matching: using JSON format, what key in my memory matches which info (Donot use nested JSON) + Info matching: using JSON format, state every info relates to what key in my memory matches which value (Donot use nested JSON) @@ -573,7 +573,7 @@ function keywordMemoryToPlanMatching(a::agentReflex) <|assistant|> Info mapping: """ - response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.2, timeout=180, + response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.4, timeout=180, stopword=["/n/n", "END", "End", "Obs", "<|", " Use the following format: - Thought: check the user info thoroughly to see if there is something you don't know (as indicates by null), you must address it the immediate next step. Otherwise, you must think about what is the immediate next step to do according to the plan (PS. 1. pay attention to correct numeral calculation and commonsense 2. you must assume nothing 3. do not ask for confirmation) + Thought: you must look for the user's info you don't know, you must address it as the immediate next step. Otherwise, you must think about what is the immediate next step to do according to the plan (PS. 1. pay attention to correct numeral calculation and commonsense 2. you must assume nothing 3. do not ask for confirmation) Act: based on your thought what action to choose?, must be one of [{toolnames}]. Actinput: your input to the action using JSON format (pay attention to the tool's input) Obs: observed result of the action diff --git a/src/utils.jl b/src/utils.jl index 856c8fc..7e7d722 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -1001,6 +1001,8 @@ end function checkSimilarKey(dict::AbstractDict, key::AbstractString) similar_k = nothing + key = replace(key, "_" => " ") + key = replace(key, "-" => " ") for (k, v) in dict if occursin(key, String(k)) similar_k = k