|
|
|
|
|
by tuchsen
1168 days ago
|
|
Hey, I started tinkering with this last night, your comments probably saved me a lot of time. It's more work, but maybe language specific tooling as a first pass? I'm wondering how far you'd get by feeding it all the type information first (from lets say rustdoc as a specific example), and then asking the LLM to understand the structure of the program. Then taking that output (which you could cache) + any source file local context information + the users request for a change. |
|
There's 2 pieces to this puzzle:
1. Condensing the code based to fit into the context window.
2. Getting GPT to generate good code modifications.
A big stumbling block I have encountered with all of these approaches is that when you feed GPT condensed code it tends to GENERATE similarly condensed code. It doesn't fill in the details for the new code it's supposed to be writing. Rather it just generates stubs and comments like it was shown.