update
This commit is contained in:
@@ -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)
|
||||
</You have access to the following tools>
|
||||
<Your job>
|
||||
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|>", "</s>", "<|end|>"],
|
||||
seed=rand(1000000:2000000))
|
||||
println("")
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user