[GH-ISSUE #1245] [FEAT]: Slash / templates #780

Closed
opened 2026-02-22 18:21:19 -05:00 by yindo · 2 comments
Owner

Originally created by @timothycarambat on GitHub (May 1, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1245

Originally assigned to: @shatfield4 on GitHub.

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.

Originally created by @timothycarambat on GitHub (May 1, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1245 Originally assigned to: @shatfield4 on GitHub. ### 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.
yindo added the enhancementfeature request labels 2026-02-22 18:21:19 -05:00
yindo closed this issue 2026-02-22 18:21:19 -05:00
Author
Owner

@mptyl commented on GitHub (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)

@mptyl commented on GitHub (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)
Author
Owner

@DaCeige commented on GitHub (May 3, 2024):

+1

@DaCeige commented on GitHub (May 3, 2024): +1
yindo changed title from [FEAT]: Slash `/` templates to [GH-ISSUE #1245] [FEAT]: Slash `/` templates 2026-06-05 14:37:09 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#780