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

Support LLM-based Merging #5

Open
drewmccormack opened this issue Dec 15, 2024 · 0 comments
Open

Support LLM-based Merging #5

drewmccormack opened this issue Dec 15, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@drewmccormack
Copy link
Owner

drewmccormack commented Dec 15, 2024

With a 3-way merge, there is presumably enough information for a LLM, even a small one, to come up with a good merge of divergent text. This seems like a natural evolution of data models: rather than using traditional algorithms, when a conflict arises on complex data like human-readable text, an LLM would presumably merge it in a more natural way.

CRDTs are partially fulfilling this role now in the framework, ie, making more "human" choices when merging text. But even those are just an algorithm attempting to do what a human might. An LLM is a much more advanced algorithm which is trained at exactly this type of problem, and an embedded LLM on a device should be able to do a great job of merging conflicts in text.

This would be a good issue for someone who has some experience with embedded LLMs. The idea would be to add a new type of merger called a LLMMerger. For inspiration, see TextMerger. The macros would then be updated to support a new merge algorithm, eg, @Merged(using: .smartTextMerge).

@drewmccormack drewmccormack added enhancement New feature or request good first issue Good for newcomers labels Dec 15, 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant