Skip to content

Commit

Permalink
update prompt to do better eval of different plans
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 10, 2024
1 parent c25f87f commit c9dee3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vision_agent/agent/vision_agent_coder_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ def remove_arrays(o):
**Instructions**:
1. Given the plans, image, and tool outputs, decide which plan is the best to achieve the user request.
2. Try solving the problem yourself given the image and pick the plan that matches your solution the best.
2. Sovle the problem yourself given the image and pick the plan that matches your solution the best.
3. Output a JSON object with the following format:
{{
"predicted_answer": str # the answer you would expect from the best plan
"thoughts": str # your thought process for choosing the best plan
"best_plan": str # the best plan you have chosen
}}
Expand Down Expand Up @@ -341,12 +342,14 @@ def find_text(image_path: str, text: str) -> str:
```
It raises this error:
```
{result}
```
This is previous feedback provided on the code:
{feedback}
Please fix the bug by correcting the error. Return the following data:
Please fix the bug by correcting the error. Return the following JSON object followed by the fixed code in the below format:
```json
{{
"reflections": str # any thoughts you have about the bug and how you fixed it
Expand Down

0 comments on commit c9dee3e

Please sign in to comment.