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

linediff number-prefixed diff format #2174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dceluis
Copy link

@dceluis dceluis commented Oct 28, 2024

Hi there,

Would a new diff format be of interest to the project?

I wanted to write a simple format that would allow me to simplify the line-matching logic. It took me a while to get it to work reliably on gpt-4o-mini (it's what I could extensively test with). More advanced models should be able to comply without such a huge system prompt.

Pros:

  • Simple rules by leveraging LLMs recitation capabilities.
  • Client-side: Simpler line matching logic.

Cons:

  • More verbose, although a lot of that is the big system reminder I had to add so that 4o-mini followed the specification.

You can also have a look at https://github.com/dceluis/ln-diff for a deeper look into the decisions behind the format.

Benchmark for context:
image

I understand the implementation is nowhere near mergeable but I figured I might show it anyways for easier consideration.

Cheers!

@CLAassistant
Copy link

CLAassistant commented Oct 28, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants