π The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add file_tree to SPO's README.md
isaacJinyu5140804f755c
diff --git a/examples/spo/README.md b/examples/spo/README.mdindex 16ff7835a..fe22fc80f 100644--- a/examples/spo/README.md+++ b/examples/spo/README.md@@ -103,3 +103,28 @@ For help:```bashpython optimize.py --help```++### 4. View Results+```+workspace+ βββ Project_name+ βββ prompts+ βββ results.json+ βββ round_1+ β βββ answers.txt+ β βββ prompt.txt+ βββ round_2+ β βββ answers.txt+ β βββ prompt.txt+ βββ round_3+ β βββ answers.txt+ β βββ prompt.txt+ βββ ...+ βββ round_n+ βββ answers.txt+ βββ prompt.txt+```++- `results.json`: Stores whether each iteration round was judged successful and other related information+- `prompt.txt`: The optimized prompt for the corresponding round+- `answers.txt`: The output results generated using the prompt for the corresponding rounddiff --git a/metagpt/ext/spo/utils/load.py b/metagpt/ext/spo/utils/load.pyindex cd282ff7d..2e931a615 100644--- a/metagpt/ext/spo/utils/load.py+++ b/metagpt/ext/spo/utils/load.py@@ -13,7 +13,7 @@ def set_file_name(name):def load_meta_data(k=SAMPLE_K):# load yaml file- config_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'settings', FILE_NAME)+ config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings', FILE_NAME)with open(config_path, 'r', encoding='utf-8') as file:data = yaml.safe_load(file)