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

RAG support for other languages #2207

Open
supercamel opened this issue May 21, 2024 · 1 comment
Open

RAG support for other languages #2207

supercamel opened this issue May 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@supercamel
Copy link

One of the coolest things about running local models is that you can fine tune them for niche languages (like I have done for Vala) or subsets of languages (like Arduino). Fine tuning only goes so far, of course. RAG in TabbyML only works for a select few languages, and does not work for these niche languages.

A possible solution would be to configure Tabby to recognize certain file extensions as a particular language. Vala is syntactically very similar to C#, and Arduino language is a subset of C++, so we should be able to configure TabbyML to recognize and parse .vala files as C# source, and .ino as C++. I think that this would be acceptable for RAG purposes.

Long term, it would be nice to be easily able to add tree-sitter implementations for other languages, but until then, configuration to recognize file extensions as a supported language would suffice.


Please reply with a 👍 if you want this feature.

@supercamel supercamel added the enhancement New feature or request label May 21, 2024
@wsxiaoys
Copy link
Member

See #553 as an example for adding language support (it's a bit outdated as we refactor all configuration into languages.toml, but can still be used as a reference)

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

No branches or pull requests

2 participants