Skip to content

Commit

Permalink
refactor: prompt engineering
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkyeongmo committed May 14, 2023
1 parent b873c94 commit 02383f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autogpt/prompts/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ def generate_prompt_string(self) -> str:
f"{self._generate_numbered_list(self.performance_evaluation)}\n\n"
"You should only respond in JSON format as described below \nResponse"
f" Format: \n{formatted_response_format} \nEnsure the response can be"
" parsed by Python json.loads. Always come up with more than ten independent, unique commands."
" parsed by Python json.loads"
)
2 changes: 1 addition & 1 deletion autogpt/prompts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def build_default_prompt_generator() -> PromptGenerator:
'Exclusively use the commands listed in double quotes e.g. "command name"'
)
prompt_generator.add_constraint(
"Come up with more than one independent unique commands to execute."
"Always come up with more than one independent unique commands to execute."
)

# Add resources to the PromptGenerator object
Expand Down

0 comments on commit 02383f7

Please sign in to comment.