From 78594b8046171479c509204b72aa3db5584bc92e Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 10 Feb 2024 08:16:31 +0700 Subject: [PATCH] update --- src/interface.jl | 8 ++++---- src/type.jl | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 8f02f6b..b012853 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -904,9 +904,9 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) keywordmemory = "" for (k, v) in a.memory[:keyword] if v === nothing - keywordmemory *= "- I have no info on $k \n" + keywordmemory *= "- I have no info on $k yet.\n" else - keywordmemory *= "- $k is $v \n" + keywordmemory *= "- The user preferred $k is $v \n" end end @@ -933,7 +933,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) Use the following format: - Thought: based on your user info, think about what to do to next according to the plan. (PS. 1. let's think only one thing at a time. 2. pay attention to correct numeral calculation and commonsense.) + Thought: based on what you know about user, you should pay attention on what you don't know first then check out your plan. (PS. 1. let's think only one thing at a time. 2. pay attention to correct numeral calculation and commonsense.) 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 @@ -961,7 +961,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) while true # while Thought or Act is empty, run actor again - response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.0, timeout=300, + response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.5, timeout=300, stopword=["Thought:", "Obs:", "<|system|>", "", "<|end|>"], seed=rand(1000000:2000000)) println("") diff --git a/src/type.jl b/src/type.jl index 87e35ef..8d19432 100644 --- a/src/type.jl +++ b/src/type.jl @@ -129,8 +129,8 @@ function agentReflex( """, :sommelier => """ - You are a helpful sommelier at a wine retailer. You helps users choosing their wine from your inventory. - You don't know other people personal info previously. + You are a helpful sommelier at a wine retailer. + You helps users choosing their wine from your stock. """, ), roleSpecificInstruction::Dict=Dict(