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

Rework prompt examples system #1523

Open
nsarrazin opened this issue Oct 15, 2024 · 0 comments
Open

Rework prompt examples system #1523

nsarrazin opened this issue Oct 15, 2024 · 0 comments
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app.

Comments

@nsarrazin
Copy link
Collaborator

Describe your feature request

Currently we store simple prompts under each model. This is annoying since we have to manually add them to each model each time.

It also only supports simple text prompts. We could replace this by a list of prompt examples that have different requirements (multimodal, tool use, etc.) and sample valid prompts on page load. We could use this to highlight tool use, multimodal models, etc.

Implementation idea

Add an env variable for PROMPT_EXAMPLES and make it an array with prompts. Optionally add fileUrl or toolId as well to specify if a file should be passed to the model or if a tool should be active when calling this example. Sample some valid examples in the UI on the chat introduction component.

@nsarrazin nsarrazin added enhancement New feature or request front This issue is related to the front-end of the app. back This issue is related to the Svelte backend or the DB labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app.
Projects
None yet
Development

No branches or pull requests

1 participant