Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
168.01k stars 44.34k forks source link

save_to_file #1000

Closed eco79 closed 1 year ago

eco79 commented 1 year ago

Duplicates

Steps to reproduce 🕹

In a complex task, some of the agents need to write to a file. They are always failing with this error: Command save_to_file returned: Unknown command 'save_to_file'.

Current behavior 😯

It throws the error and continues.

Expected behavior 🤔

It should write to file or give a better error message by explaining why it can't write or a possible solution

Your prompt 📝

ai_goals:
- Discover the oldest recipes in different categories.The categories are the ones you find usualy in cookbooks.
- Plan the cookbook to contain at least 5 recipes for each category. 
- Write the book autonomously.
- Play to your strengths as a Large Language Model.
ai_name: Tati-GPT
ai_role: an AI designed to autonomously analyse, plan and write a cookbook about the oldest recipes from the Tigres and Euphrates area.
richbeales commented 1 year ago

The function is called write_to_file, but it's a case of the AI not paying attention to it's prompt. We may have to look for some synonyms to lookup the right function.

eco79 commented 1 year ago

is there a default place where these files are written? i don't seem to find any in the Auto-GPT folder.

tdaubs commented 1 year ago

Using Win 10 and --gpt3only mode, it wasn't able to create a file from scratch as far as I can tell but it did see the file I created and then wrote something to it after instructed to do so.

The instructions used to verify...

"I want to test something to determine if you can successfully write something to a file. I have created a file called note.txt in the working directory. Can you please write the sentence "May the force be with you" to that file to confirm you have the ability to write to a file?"

Artemonim commented 1 year ago

is there a default place where these files are written? i don't seem to find any in the Auto-GPT folder.

auto_gpt_workspace folder in the folder from which ./main.py is called

avelican commented 1 year ago

If GPT uses the same wrong name consistently, we could try changing the name of the command to the one it "prefers" and see if that improves things.

One way to identify its preferences on such matters would be to ask it to invent such an API from scratch (say, 5 times) and see what kind of names it comes up with.

Pwuts commented 1 year ago

Closing for now as this is an issue with the GPT. Of course you're welcome to investigate how we can mitigate this and reopen. :)