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

[FEAT]: Slash / templates #1245

Closed
timothycarambat opened this issue May 1, 2024 · 2 comments · Fixed by #1314
Closed

[FEAT]: Slash / templates #1245

timothycarambat opened this issue May 1, 2024 · 2 comments · Fixed by #1314
Assignees
Labels
enhancement New feature or request feature request

Comments

@timothycarambat
Copy link
Member

What would you like to see?

A user should be able to define a custom / command that can be invoked in the chat and will be automatically "expanded" during inferencing.

@mptyl
Copy link

mptyl commented May 2, 2024

My suggestion is to implement the same functionality that you find in Open WebUi when you digit a /. A list of prompts, "names," appears. If you choose one of them, the content of the associated file — a text — is put into the user window, filling in the prompt.

So what could be implemented are:

  • a CRUD for creating, editing, and delating a text file (saved in a local database, I suppose, using sqllite, postgresql, or mongodb. The file could be "pointed" by a record in a table where the name and description of the file could be used to select the text to be used.
  • a "filter" on the character "/" in the prompt. When a / is intercepted, the application should propose a list of the saved prompts, waiting for a selection. The selection event should fill the prompt window with the text present in the pointed file, as it is. It's user's responsibility to engineer the right prompt to be queried. The file can even include a short "command" to be executed.

Marco Pancotti (from Italy)

@DaCeige
Copy link

DaCeige commented May 3, 2024

+1

@shatfield4 shatfield4 mentioned this issue May 8, 2024
10 tasks
@shatfield4 shatfield4 linked a pull request May 8, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants