update
This commit is contained in:
@@ -199,10 +199,43 @@ function planner_mistral_openorca(a::agentReflex)
|
||||
$(a.roleSpecificInstruction[a.role])
|
||||
"""
|
||||
|
||||
# assistant_plan_prompt =
|
||||
# """
|
||||
# <s>
|
||||
# <|system|>
|
||||
# <About yourself>
|
||||
# $aboutYourself
|
||||
# </About yourself>
|
||||
# <You have access to the following tools>
|
||||
# $toollines
|
||||
# </You have access to the following tools
|
||||
# <Your earlier work>
|
||||
# $shorttermMemory
|
||||
# </Your earlier work>
|
||||
# <Your job>
|
||||
# Plan: first you should always think about your conversation with the user and your earlier work thoroughly then extract and devise a complete, task by task, plan to achieve your objective (pay attention to correct numeral calculation and commonsense).
|
||||
# Keyword memory: using JSON format, list all variables in the plan you need to find out
|
||||
# P.S.1 each task of the plan should be a single action.
|
||||
# </Your job>
|
||||
# <Example>
|
||||
# Plan:
|
||||
# 1. Ask the user about how many miles per day they drive
|
||||
# 2. Ask the user about what stuff they usually carry with
|
||||
# 3. Ask the user about preferred type of car they want to buy (sedan, sport, SUV, etc)
|
||||
# 4. Ask the user about their price range
|
||||
# 5. Use inventory tool to find cars that match the user's preferences and are within their price range
|
||||
# 6. Use finalanswer tool to present the recommended car to the user.
|
||||
# Keyword memory: {"mile per day": null, "carry item": null, "car type": null, "price range": null}
|
||||
# </Example>
|
||||
# </s>
|
||||
# $conversation
|
||||
# <|assistant|>
|
||||
# Plan:
|
||||
# """
|
||||
|
||||
assistant_plan_prompt =
|
||||
"""
|
||||
<s>
|
||||
<|system|>
|
||||
<|im_start|>system
|
||||
<About yourself>
|
||||
$aboutYourself
|
||||
</About yourself>
|
||||
@@ -227,12 +260,13 @@ function planner_mistral_openorca(a::agentReflex)
|
||||
6. Use finalanswer tool to present the recommended car to the user.
|
||||
Keyword memory: {"mile per day": null, "carry item": null, "car type": null, "price range": null}
|
||||
</Example>
|
||||
</s>
|
||||
<|im_end|>
|
||||
$conversation
|
||||
<|assistant|>
|
||||
<|im_start|>assistant
|
||||
Plan:
|
||||
"""
|
||||
|
||||
|
||||
response = sendReceivePrompt(a, assistant_plan_prompt, max_tokens=1024, temperature=0.1,
|
||||
timeout=180, stopword=["<|user|>", "</"])
|
||||
response = split(response, "<|")[1]
|
||||
|
||||
Reference in New Issue
Block a user