Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Dec 14, 2023
1 parent d8d2c6e commit 3febf07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To simplify development further, phidata provides pre-built templates for common
## ✨ Motivation

Most AI Apps are built as a house of cards because engineers have to build the Software, Application and Infrastructure layer separately and then glue them together.
This leads to brittle systems that are hard to productionize and maintain.
This leads to brittle systems that are hard to maintain and productionize.

Phidata bridges the 3 layers of software development and provides a paved path to production-ready AI.

Expand Down
4 changes: 2 additions & 2 deletions phi/agent/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_file_metadata(self) -> str:
def get_instructions(self) -> str:
_instructions = [
"Determine if you can answer the question directly or if you need to run python code to accomplish the task.",
"If you need to run code, **THINK STEP BY STEP** about how you will accomplish the task.",
"If you need to run code, first **THINK** about how you will accomplish the task. No need to explain your reasoning.",
"If you need access to data, check the `files` below to see if you have the data you need.",
"If you do not have the data you need, stop and prompt the user to provide the missing information.",
"Once you have all the information, create python functions to accomplishes the task.",
Expand All @@ -106,7 +106,7 @@ def get_instructions(self) -> str:
'After you have all the functions, create a python script that runs the functions guarded by a `if __name__ == "__main__"` block.'
]
if self.save_and_run:
_instructions += ["After the script is ready, save it to a file using the `save_to_file_and_run` function."]
_instructions += ["After the script is ready, save and run it using the `save_to_file_and_run` function."]
_instructions += ["Make sure you specify the `variable_to_return` parameter correctly"]
if self.run_code:
_instructions += ["After the script is ready, run it using the `run_python_code` function."]
Expand Down

0 comments on commit 3febf07

Please sign in to comment.