mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 20:26:15 +00:00
多轮对话
This commit is contained in:
parent
fee5e769e7
commit
67a40dba94
@ -9,6 +9,9 @@ DEFAULT_TRIGGERING_PROMPT = (
|
|||||||
"Determine which next command to use, and respond using the format specified above"
|
"Determine which next command to use, and respond using the format specified above"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
DEFAULT_PROMPT_OHTER = (
|
||||||
|
"Previous response was excellent. Please response according to the requirements based on the new goal"
|
||||||
|
)
|
||||||
|
|
||||||
def build_default_prompt_generator() -> PromptGenerator:
|
def build_default_prompt_generator() -> PromptGenerator:
|
||||||
"""
|
"""
|
||||||
@ -27,10 +30,10 @@ def build_default_prompt_generator() -> PromptGenerator:
|
|||||||
# "~4000 word limit for short term memory. Your short term memory is short, so"
|
# "~4000 word limit for short term memory. Your short term memory is short, so"
|
||||||
# " immediately save important information to files."
|
# " immediately save important information to files."
|
||||||
# )
|
# )
|
||||||
# prompt_generator.add_constraint(
|
prompt_generator.add_constraint(
|
||||||
# "If you are unsure how you previously did something or want to recall past"
|
"If you are unsure how you previously did something or want to recall past"
|
||||||
# " events, thinking about similar events will help you remember."
|
" events, thinking about similar events will help you remember."
|
||||||
# )
|
)
|
||||||
# prompt_generator.add_constraint("No user assistance")
|
# prompt_generator.add_constraint("No user assistance")
|
||||||
|
|
||||||
prompt_generator.add_constraint(
|
prompt_generator.add_constraint(
|
||||||
@ -57,16 +60,16 @@ def build_default_prompt_generator() -> PromptGenerator:
|
|||||||
# prompt_generator.add_resource("File output.")
|
# prompt_generator.add_resource("File output.")
|
||||||
|
|
||||||
# Add performance evaluations to the PromptGenerator object
|
# Add performance evaluations to the PromptGenerator object
|
||||||
# prompt_generator.add_performance_evaluation(
|
prompt_generator.add_performance_evaluation(
|
||||||
# "Continuously review and analyze your actions to ensure you are performing to"
|
"Continuously review and analyze your actions to ensure you are performing to"
|
||||||
# " the best of your abilities."
|
" the best of your abilities."
|
||||||
# )
|
)
|
||||||
# prompt_generator.add_performance_evaluation(
|
prompt_generator.add_performance_evaluation(
|
||||||
# "Constructively self-criticize your big-picture behavior constantly."
|
"Constructively self-criticize your big-picture behavior constantly."
|
||||||
# )
|
)
|
||||||
# prompt_generator.add_performance_evaluation(
|
prompt_generator.add_performance_evaluation(
|
||||||
# "Reflect on past decisions and strategies to refine your approach."
|
"Reflect on past decisions and strategies to refine your approach."
|
||||||
# )
|
)
|
||||||
# prompt_generator.add_performance_evaluation(
|
# prompt_generator.add_performance_evaluation(
|
||||||
# "Every command has a cost, so be smart and efficient. Aim to complete tasks in"
|
# "Every command has a cost, so be smart and efficient. Aim to complete tasks in"
|
||||||
# " the least number of steps."
|
# " the least number of steps."
|
||||||
|
Loading…
Reference in New Issue
Block a user