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

Question on repository level code completion #23

Open
ZuoyunZheng opened this issue Jan 9, 2025 · 2 comments
Open

Question on repository level code completion #23

ZuoyunZheng opened this issue Jan 9, 2025 · 2 comments

Comments

@ZuoyunZheng
Copy link

Hi,
newbie here. With my usage of this (very useful and fun) plugin, i always find myself having to open up the relevant files in split for the model to be able to complete the code as i wish.

I wish there was some way to also pass on all the code in my repository to the model so that it could perform some sort of RAG. My question is, how realistic is it that this gets implemented in the plugin? If not, how would you implement something like this?

Thanks in advance!

@ggerganov
Copy link
Member

For the short term I don't think we will add repository-level RAG. It requires a complicated orchestration logic, that would be a lot of effort to maintain and implement correctly.

There are some simpler approaches to explore that would improve the "repo awareness" of the completions and would not require a sophisticated implementation. For example, a better chunk selection logic for the extra context might improve the results significantly.

@bhupesh-sf
Copy link

agreed, though repo level RAG would be best but that's quite a moving target to implement and maintain. But having better chunk selection logic which can cover whatever max can be covered for the repo will be great

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

No branches or pull requests

3 participants