-
-
Notifications
You must be signed in to change notification settings - Fork 42
feat(nvim): avoid retrieving files that is already present in the context #72
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #72 +/- ##
=======================================
Coverage 97.78% 97.78%
=======================================
Files 18 18
Lines 1176 1176
=======================================
Hits 1150 1150
Misses 26 26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@olimorris Could you take a look at this when you're available? I'm not sure whether there's a better way to do this. EDIT: specifically whether it's possible to simplify this by making use of the |
|
The I'd recommend using the references in the chat object simply because it's a live reflection of what context the user has manually added. |
|
I'm not quite sure how to make it work with references, though. If I create a new |
|
This is occupying half of the height of the window... Looks a bit overwhelming lol Related PR: olimorris/codecompanion.nvim#1245 |
Apologies for coming to this late...does your PR resolve this? One thought I had was that if I added an event in CodeCompanion that fires when a reference is added, this would allow VectorCode to stay in sync with the chat buffer. Now the downside here is that if VectorCode is added after the fact then there would still be that initial processing to do. OR...is there a more useful public facing references table that could be created on the chat buffer class? |
86a81f7 to
d782e78
Compare
My PR to codecompanion allows finer controls over whether a particular
This may be useful if I want to
From my side the current reference system works fine. I still need to experiment on the |

This PR adds an option that check the existing references that have been added to the chat, and excluding them from further queries. This helps saving tokens, and should help the search if previous queries missed the appropriate documents.