This commit is contained in:
Paul Gauthier 2023-05-22 15:59:34 -07:00
parent 4f556f3192
commit 88f6e27701

View file

@ -7,14 +7,15 @@ like generating brand new code or modifying a pure function without dependencies
But it's difficult to use GPT-4 to modify or extend But it's difficult to use GPT-4 to modify or extend
a complex pre-existing codebase, which has many dependencies a complex pre-existing codebase, which has many dependencies
between different parts of the system. between different parts of the system.
To modify such code, GPT needs to understand all of these dependencies. To modify such code, GPT needs to understand these dependencies and APIs
And depending on the assigned coding task, it may not be obvious which interconnect all the subsystems.
how to even determine which parts of the codebase are relevent to solving the task. Depending on the assigned coding task, it may not be obvious
Further, assuming we can identify all the needed context, we must how to determine which parts of the codebase are relevent to solving the task.
Even assuming we can identify all the needed context, we must
ensure that it fits within GPT-4's 8k-token ensure that it fits within GPT-4's 8k-token
context window. context window.
To address this issue, `aider` has To address these issues, `aider` has
a new experimental feature that utilizes `ctags` to provide a new experimental feature that utilizes `ctags` to provide
GPT with a **concise map of your whole git repository** including GPT with a **concise map of your whole git repository** including
all declared variables and functions with call signatures. all declared variables and functions with call signatures.