Skip to content

🌟 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.md
index 16ff7835a..fe22fc80f 100644
--- a/examples/spo/README.md
+++ b/examples/spo/README.md
@@ -103,3 +103,28 @@ For help:
```bash
python 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 round
diff --git a/metagpt/ext/spo/utils/load.py b/metagpt/ext/spo/utils/load.py
index 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)