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 '@' routing in addition to slash routing #812

Open
michaelchia opened this issue Jun 2, 2024 · 0 comments
Open

Support '@' routing in addition to slash routing #812

michaelchia opened this issue Jun 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@michaelchia
Copy link
Collaborator

Problem

I would like to reference some commands with the @ symbol rather than the slash. I would like to separate RAG / context type commands for QA (e.g. /ask) from commands that are more structured in input (e.g. /help, /clear) or have some side effect (e.g. /learn, /generate). I have added a bunch of both kinds of custom commands and it would be nice to easily convey its expected usage pattern based on the type of command.

As my command list grows, the autocomplete feature in #810 will allow users to quickly filter the context commands (@) with a single input.

Proposed Solution

Allow '@' as a valid HandlerRoutingType and supported in the command detection in RootChatHandler and the future autocomplete feature in #810.

Additional context

Some future extensions of this could be:

  • Changing /ask to something like @files
    • supporting @files:/path/to/file/or/dir to QA a subset of the learned files
  • Creating some like @model:<provider_id>:<model_id> to let a different provider handle a question without having to switch back and forth in the settings.
@michaelchia michaelchia added the enhancement New feature or request label Jun 2, 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
Projects
None yet
Development

No branches or pull requests

1 participant