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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Dynamic Prompt Input for Suggestions, options and more.. #868

Open
sherifButt opened this issue Mar 6, 2024 · 0 comments 路 May be fixed by #899
Open

[FEAT]: Dynamic Prompt Input for Suggestions, options and more.. #868

sherifButt opened this issue Mar 6, 2024 · 0 comments 路 May be fixed by #899
Labels
enhancement New feature or request feature request

Comments

@sherifButt
Copy link
Contributor

What would you like to see?

馃榾 Open for suggestions on the feature's design, in terms of modularity, ease of scalability to expand on various input methods

Feature Suggestion: Dynamic Input Methods for Enhanced User Interaction

A dynamic input method feature, aimed at significantly improving user experience by enabling intuitive, immediate, and context-sensitive interactions. This feature leverages a JSON meta object embedded within the GPT response to instruct the front-end on rendering various input interfaces, such as options, suggestions, or sliders, instead of the traditional text input.

Key Components:

  1. Meta Object: A structured JSON defining input types (options, range sliders, etc.) and data necessary for their rendering.
  2. Input Handler Module: A flexible component that reads the meta object and dynamically switches the user input method accordingly.
  3. Modularity and Scalability: Design the system with a library of standalone input method components and a schema for the meta object that supports future expansion.

Example JSON Meta Object:

{
"meta": {
"options": ["option1", "option2"],
// "suggestions": ["suggestion1", "suggestion2"],
"range": {
"min": 1,
"max": 10,
"step": 1
}
},
"settings": {
"type": "range",
"placeholder": "Select a value between 1 and 10"
}
}

Benefits:

  • Enhances user engagement by offering a more interactive and guided conversation experience.
  • Reduces reliance on text input, making interactions quicker and more intuitive.

Implementation Approach:

  • Start with a prototype focusing on a core set of input methods. options list.
  • Provide clear documentation for extending the feature with new input methods.

Before:
anythingllm_ui_01

After:
anythingllm_ui_02

@sherifButt sherifButt added enhancement New feature or request feature request labels Mar 6, 2024
@sherifButt sherifButt linked a pull request Mar 13, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant