3 ms·
Can't you ask these LLMs to simply output a patch file? https://man7.org/linux/man-pages/man1/patch.1.html https://man7.org/linux/man-pages/man1/patch.1.html
by amelius 1y ago
Can't you ask these LLMs to simply output a patch file?
https://man7.org/linux/man-pages/man1/patch.1.html https://man7.org/linux/man-pages/man1/patch.1.html
- bhaktatejas922 1y agoyou can - but they dont work reliably in practice. Common issues include search match fails, missing commas in replaced items (model doesnt have surround context while replacing), and a few other error cases. This issues are much worse for scattered edits across a file from real world queries (ex: make this page look nicer). Patches tend to work fine for single line or extremely focused edits though - Cursor uses s&r/patches for single line edits: https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools/blob/main/Cursor%20Prompts/Agent%20Prompt%20v1.2.txt https://github.com/x1xhlol/system-prompts-and-models-of-ai-t...
- treyd 1y agoI wonder if it'd be feasible to have a much smaller model that could go in and correct these meshing issues that require simpler reasoning?
- bhaktatejas922 1y agohm maybe but correction/issue detection is a much harder task for models. If you pipe back the errors in it could work, but personally still see Fast Apply as the better approach