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

Feature: creation and usage of custom prompts #2098

Open
cforce opened this issue Oct 30, 2024 · 2 comments
Open

Feature: creation and usage of custom prompts #2098

cforce opened this issue Oct 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cforce
Copy link
Contributor

cforce commented Oct 30, 2024

Allow users to create ,manage and use custom prompts.
Simply by typing "/" in the question or chat input an overlay dialogue will pop up above dialogue and gives option to choose existing, add new or delete prompts organized in categories/tree. Selecting a prompt item from the view will inject into the ask/chat input exactly t the choosen position of "/" and replace it. A prompt exist of a unque name and a prompt text. The overlay dialogue shall search while typing in prompt list

image

@pamelafox
Copy link
Collaborator

I see this a lot in generic chat apps, but not as much in RAG apps, since the prompt very carefully explains how to provide citations in the right format. How would you imagine that custom prompts would interact with our need for particular syntax in the responses?

@pamelafox pamelafox added the enhancement New feature or request label Nov 1, 2024
@cforce
Copy link
Contributor Author

cforce commented Nov 2, 2024

Currently, the prompt feature in developer settings allows users to extend or customize inputs, but it would be helpful to improve its accessibility and flexibility. This request proposes a more user-friendly way to inject predefined questions and set general search context effortlessly.

Proposed Enhancement:

  1. Dropdown Prompt Selection: Enable users to open a searchable dropdown menu by typing "/" in the input field. This would show all prompt templates with further filtering available as more letters are typed.

  2. Quick Selection and Editing: Allow users to navigate this dropdown with the mouse or keyboard (using keyboard navigation up/doen and "Enter" or mouse and click to confirm), making it easy to select, edit, or add prompts on the fly.

  3. Persistent Prompt Management: Introduce an "Edit Prompts" option to save custom prompts, making them persistently available across sessions for quicker setup. Later persist prompts in backend and make them reusable for others so the can add them to their collection.

  4. Application Beyond Dev Settings: Extend this feature to apply not only in developer settings but also directly in chat or query sections. By typing "/", users could replace static predefined questions with dynamic, customizable templates suited to each session's needs.

This enhancement would offer a more interactive, accessible way to adjust prompts, enhancing user productivity and adaptability in various search or chat contexts. Instead of using categoric filtering only users can give context this way as well. Also the prompt template names can be used as http url param to store presented bookmarks with a certain context .
The feature is UI extension only

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

2 participants