Coder Social home page Coder Social logo

Comments (8)

mrT23 avatar mrT23 commented on May 14, 2024 1

@KalleV It's tempting to use longer and longer prompts to try and fix cases that didn't work 100% well.
Usually, there are better ways to go.

You can try your modified prompt on the bad cases you saw. Did it improve ?

To try improve the prompting for this specific issue, I would focus on a different aspect -further explain to the model what are the '+' lines. Maybe be a specific example, simulating a hunk in the prompt, would help
(similar to

)

(If you prefer, share a public example that gave bad results, and I will try an improved prompt)

from pr-agent.

mrT23 avatar mrT23 commented on May 14, 2024 1

ok.

notice that the '/improve' tool works differently in terms of patch and prompt design, and I think it will happen less there, so you can you it instead

from pr-agent.

mrT23 avatar mrT23 commented on May 14, 2024 1

I am closing this issue. if you encounter this again in the '/improve' command, feel free to open another

from pr-agent.

okotek avatar okotek commented on May 14, 2024

Do you have a public PR you can share with this behavior?

from pr-agent.

KalleV avatar KalleV commented on May 14, 2024

I can try to set up a reproduction of this issue but I can see the prompts are clearly trying to avoid this already:

- Make sure not to provide suggestions repeating modifications already implemented in the new PR code (the '+' lines).

Do you think tweaking that instruction or its placement would make a difference? Something like:

- It is essential to avoid suggesting changes that mirror modifications already introduced in the new PR code (the '+' lines). Ensure that your feedback brings new insights and does not reiterate the changes already incorporated in the PR.

from pr-agent.

okotek avatar okotek commented on May 14, 2024

Cc @mrT23

from pr-agent.

KalleV avatar KalleV commented on May 14, 2024

I wasn't able to create a minimum public reproduction yet but I came across a PR consistently requesting a try/catch. Not sure if the PR size makes a big difference but according to https://llmtokencounter.com/, the system prompt + user prompt is about 4801 tokens 19205 characters 5004 words.

I couldn't consistently prove small tweaks such as:

+ - It is essential to avoid suggesting changes that mirror modifications already introduced in the new PR code (the '+' lines).
- - Make sure not to provide suggestions repeating modifications already implemented in the new PR code (the '+' lines).

Or rearranging the system instructions led to a consistently better response but it was fun to try!

from pr-agent.

KalleV avatar KalleV commented on May 14, 2024

Sounds good, thank you!

from pr-agent.

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.