4 ms·
How would you have it suggest solutions for multiple files? Has anyone gotten GPT-X to output a valid git patch or something?
by graypegg 4y ago
How would you have it suggest solutions for multiple files? Has anyone gotten GPT-X to output a valid git patch or something?
- fabiospampinato 4y agoYou just kind of concatenate the entire codebase into one file, tell the model to do something and output the modified codebase into another file, diff the two and produce a patch automatically.
- graypegg 4y agoThat codebase=>token stream=>codebase step feels like it could be lossy depending on how you encode things like file paths when concatenating everything, would be interesting to see in practice though!
- dom96 4y agoor you might even be able to feed it individual files with their filenames, then ask it what modifications it would make as a diff for each of the files
- alexwebb2 4y agoYep, I know that’s been possible since at least GPT-3 davinci
- JyB 4y agoHow would you go about it?
- gremlinsinc 4y agoI think there's ways but you might have to use pinecone db or something like lang chain to essentially give it a long term memory... or another option is having one instance or chat order code page and one that basically just has an API index and knows which chat has the related things.