Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it better at writing small patches #26

Closed
ErikBjare opened this issue Nov 2, 2023 · 4 comments
Closed

Make it better at writing small patches #26

ErikBjare opened this issue Nov 2, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@ErikBjare
Copy link
Owner

Right now, it tends to output large chunks of the original file when writing patches.

@ErikBjare
Copy link
Owner Author

@gptme Optimize the prompt in gptme/tools/patch.py to make it comply better. We want to make sure patches are concise and reliable. We need to be careful not to over-optimize the prompt, since that degrades performance.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

I'm sorry, I could not fulfill your request. Please check the log of this run for more information.

@ErikBjare
Copy link
Owner Author

ErikBjare commented Nov 9, 2023

I partially improved this by stopping generation on the ending >>>>>> UPDATED in a patch block. Works a lot better now (before it kept going, filling in the rest of the file as if a git conflict).

@ErikBjare ErikBjare added the enhancement New feature or request label Nov 22, 2023
@ErikBjare
Copy link
Owner Author

I've found that Claude 3.5 Sonnet doesn't really suffer from this anymore.

Feels like a thing I cannot control anyway, it's all in the hands of the LLM. Trying to force its hand is unlikely to work.

@ErikBjare ErikBjare closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant