From 3febf0723e3c93d13ecf7302a2435ed0492f9664 Mon Sep 17 00:00:00 2001 From: Ashpreet Bedi Date: Thu, 14 Dec 2023 21:03:49 +0000 Subject: [PATCH] v2.1.0 --- README.md | 2 +- phi/agent/python.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33b8bf3b7..07cf4d472 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/phi/agent/python.py b/phi/agent/python.py index ec41abf61..c73d8a880 100644 --- a/phi/agent/python.py +++ b/phi/agent/python.py @@ -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.", @@ -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."]