Skip to content

Rework prompt examples system #1523

@nsarrazin

Description

@nsarrazin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backThis issue is related to the Svelte backend or the DBenhancementNew feature or requestfrontThis issue is related to the front-end of the app.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions