Coder Social home page Coder Social logo

Comments (2)

paul-gauthier avatar paul-gauthier commented on May 22, 2024

Good catch, thanks for reporting. I just pushed a fix. You'll need to install from github to pick it up.

The root of the issue is that GPT-4 won't consistently return properly formatted diffs. The <<ORIGINAL/>>UPDATED format aider uses is by far the most reliable format I've discovered. But GPT-4 won't always conform and output even this very simple format.

I've tried asking it to output diff -c, diff -u, sed, and many other formats. GPT-4 does much, much worse on them. Even the new functions api is not looking like a panacea here.

One key issue about the "output format" is that it's easy to "distract" the LLM if you ask it to use too structured or technical of a format. Especially when you're asking it to write code. The coding itself is a challenging task, and asking it to render actual diff or vim or sed editing outputs is going to confuse it. I have absolutely seen the quality of the coding task degrade when the output format is too complex.

Imagine asking a junior developer to "implement this cool feature, but I want you to hand type the diffs required to change the current code".

I'm hoping to write up something more quantitative and concrete about this aspect of AI coding soon.

from aider.

paul-gauthier avatar paul-gauthier commented on May 22, 2024

Closing this for now. Feel free to re-open if you continue to have issues.

from aider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.