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

asking for edits re-renders the entire content #92

Open
codeninja opened this issue May 7, 2024 · 1 comment
Open

asking for edits re-renders the entire content #92

codeninja opened this issue May 7, 2024 · 1 comment

Comments

@codeninja
Copy link

codeninja commented May 7, 2024

I notice when I ask for an edit to the generated content, its re-generating it through chat gpt, or whatever model.

I use Aider a lot as a personal code assistant. And their implementation and approach is to to generate a unified diff (by generating only the changes that are needed in udiff format) and apply that to the original work rather than regenerating the original work with the edits. I cannot overstate how exceptionally well this works. It does require some fine-tuning of the unified diff prompt and a error correction agent to fix when things go wrong. Which is in frequent, but it does happen.

In my opinion the experience would be greatly improved by generating a unified diff and applying that diff against the original source.

@vanpelt
Copy link
Contributor

vanpelt commented May 8, 2024

Nice, love this idea. Right now I'm basically starting a new chat session each time. If we include a diff it would definitely provide more context. I'll experiment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants