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

"Smart @Docs", meta-index docs, and automatically decide which ones are relevant based on query #3627

Open
2 tasks done
TiagoTiago opened this issue Jan 7, 2025 · 3 comments
Assignees
Labels
area:context-providers Relates to context providers kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority

Comments

@TiagoTiago
Copy link

TiagoTiago commented Jan 7, 2025

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

Sometimes having to think of/search the specific keyword for relevant @Docs wastes some (not always too much, but at least some) amount of time.

Solution

Since the whole purpose of the AI assist system is to spare a few brain-cycles, I figure it would make sense to have some sort of meta-index of all the indexed docs that basically provides the system the gist of what each of the docs is about and what kind of thing it might have inside, sorta similar to how right now within each specific doc it can figure which pages are relevant; and with that, the user would be able to do something like add the @SmartDocs "context" and the system would figure out which @Docs to actually include in the search for specific content based on what the user is talking about in the rest of the prompt.

I imagine this hierarchical indexing/search approach would likely be less compute intensive than actually performing the search on all indexed docs.

This wouldn't necessarily replace the current @Docs system, since there could be situations where either due to ambiguity, or imperfections in the AI or in the RAG algorithm, the wrong docs might be picked up, or some important ones might get left out; users should still be able to call for specific docs directly like how it's currently done, the SmartDocs context would just be an additional option.

ps: Obviously, the name "SmartDocs" is just a placeholder, I'm sure someone can think of something better; I forgot to go sleep many hours ago.

@dosubot dosubot bot added area:context-providers Relates to context providers kind:enhancement Indicates a new feature request, imrovement, or extension labels Jan 7, 2025
@tomasz-stefaniak tomasz-stefaniak added priority:medium Indicates medium priority and removed "needs-triage" labels Jan 8, 2025
@tomasz-stefaniak
Copy link
Collaborator

Good idea, seems like the natural next step

@TiagoTiago
Copy link
Author

TiagoTiago commented Jan 8, 2025

Maybe it might not even need a new keyword, just have it so if the user doesn't move to pick an specific doc and just leave @Docs in the prompt, it will trigger the smart behavior. And besides mentioning in the Continue documentation, also let the user know in the hover-tip that shows up when the user writes @Docs that functionality exists and they may choose to not further specify the docs and let the system try to deduce which to include.

What do you think?

@tomasz-stefaniak
Copy link
Collaborator

We'd love a contribution here if you are (or someone else reading this!) interested in implementing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:context-providers Relates to context providers kind:enhancement Indicates a new feature request, imrovement, or extension priority:medium Indicates medium priority
Projects
None yet
Development

No branches or pull requests

2 participants