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

Enhancement: Enhanced Placeholder Configuration in LibreChat Prompt Library #3597

Closed
1 task done
kmeshcheryakov opened this issue Aug 9, 2024 · 5 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@kmeshcheryakov
Copy link
Contributor

What features would you like to see added?

What features would you like to see added?

Current Behavior: Currently, placeholders in the Prompt Library are displayed as one-line input fields when using a prompt. The configuration options for these placeholders are limited, and their order on the prompt screen is fixed.

Proposed Behavior: Enhance the placeholder configuration in the Prompt Library to support:

  1. Multiline input fields
  2. Dropdown lists
  3. Ability to change the order of placeholder fields on the prompt screen

Use Case:

  • Users can create more complex and versatile prompts with different types of input fields (single-line, multiline, dropdown).
  • Prompt creators can specify the most appropriate input type for each placeholder, improving user experience and prompt accuracy.
  • Users can customize the order of placeholder fields to create a more logical or user-friendly flow when filling out prompts.

More details

This enhancement would require changes to both the prompt creation interface and the prompt usage interface. The prompt creation process would need to be updated to allow for more detailed placeholder configuration. The prompt usage interface would need to be modified to render different types of input fields based on the placeholder settings.

Which components are impacted by your request?

General, UI

Pictures

image

For example, the {{original_email}} placeholder would benefit from being a multiline field, and the {{tone}} as a dropdown list.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kmeshcheryakov kmeshcheryakov added the enhancement New feature or request label Aug 9, 2024
@danny-avila
Copy link
Owner

danny-avila commented Aug 9, 2024

Thank you for the excellent write up. Thinking out loud here, it's definitely possible even with just text alone, for example, if I wanted a dropdown and a multi-line input:

<tone:formal|casual|business casual>

or for multi-line inputs:
{{multi-line:email}}

While convenient from a dev perspective, this would be somewhat advanced usage and it may be easier to have interface elements to help create "special" variables.

Any help, even landing on a format for variable, would be really helpful.

@danny-avila
Copy link
Owner

Also it may be worthwhile to make those inputs resizable textareas by default

@kmeshcheryakov
Copy link
Contributor Author

kmeshcheryakov commented Aug 9, 2024

<tone:formal|casual|business casual>

or for multi-line inputs:
{{multi-line:email}}

I think it's a great suggestion. In this case, the backend part will not need to be changed. I'll try to implement this in the frontend and see how it works.

I don't know what type of input would be a sensible default, though.

@kmeshcheryakov
Copy link
Contributor Author

I have created a PR for this feature: #3618

@danny-avila
Copy link
Owner

Closing, resolved by #3681

I'm sure we can add more like this, but this is a good start and any others should be scoped to their own issues.

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