This commit is contained in:
Paul Gauthier 2023-05-22 09:45:16 -07:00
parent 068a1edded
commit d373a3b64a

View file

@ -43,15 +43,16 @@ with the prints, and it also needs to understand how the project's BarLog
logging system works. logging system works.
A simple solution is to **send the entire codebase** to GPT along with A simple solution is to **send the entire codebase** to GPT along with
each change request. Now GPT has all the context! But even moderately each change request. Now GPT has all the context! But this won't work
sized repos won't fit in the 8k-token context window. for even moderately
sized repos that won't fit in the 8k-token context window.
An An
improved approach is to be selective, and **hand pick which files to send**. improved approach is to be selective, and **hand pick which files to send**.
For the example above, you could send the file that For the example above, you could send the file that
contains Foo and the file that contains the logging subsystem. contains Foo and the file that contains the BarLog logging subsystem.
This works pretty well, and is how `aider` previously worked. You This works pretty well, and is supported by `aider`: you
manually specify which files to "add to the chat". can manually specify which files to "add to the chat".
But it's not ideal to have to manually identify the right But it's not ideal to have to manually identify the right
set of files to add to the chat. set of files to add to the chat.