unconv / gpt-autopilot

A GPT-4 powered AI agent that can create full projects with iterative prompting
MIT License
304 stars 95 forks source link

How to consistently load a file? #19

Open awfuel opened 1 year ago

awfuel commented 1 year ago

I am having issues with getting the script to load a file or files for analysis by chatgpt. Can you provide information on a way on how to do this better? My only known method is to add it to the code directory and tell it to look for the file there.

unconv commented 1 year ago

What are you trying to achieve exactly? That is in fact how the system works. You give it files and it will do with them what you ask. You can also use the --dir flag to set a working directory other than the code/ directory. Note that very large files won't fit in ChatGPT's context window, so you can't read them directly. I will answer more on this in #20

awfuel commented 1 year ago

Okay. My goal was for it to read a file and explain what it is doing (a long yaml file, I will try again with a smaller one later). It would ignore or disregard all of my requests in the code directory despite multiple attempts.