chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Add drop-down button

Open mcai opened this issue 1 year ago • 2 comments

Sometimes, it’s convenient to click a drop-down button with a list of available options, e.g., click the “generate image” button with the default value (option) set to StableDiffusion 1.5 or the last model the user uses, while the user can also try one of the other models to generate.

mcai avatar May 30 '23 07:05 mcai

We are planning to add new elements, including different kinds of inputs to typically configure some model parameters. This is probably going to be released in June but I can't commit to a deadline :)

willydouhard avatar May 30 '23 10:05 willydouhard

This is great. I would add another use case into the mix. We want the ability to pre - filter the results from a retriever based on some user defined values. For example, we might constrain the search to a particular product, product range, document type etc. Then we can use the right kind of prompting strategy. Of course this can be done probably in the backend agent and routing and multi-steps but a hint from the user might be much simpler way of deciding what to do.

jonosooty avatar Jun 08 '23 16:06 jonosooty

Should now be possible with chat settings!

willydouhard avatar Aug 26 '23 08:08 willydouhard

@willydouhard How we can use dropdown value for conditions like to call different chain on different options ?

Siddhijain16 avatar Oct 18 '23 12:10 Siddhijain16

Example here. We also added Chat Profiles in the latest release that you might find useful.

willydouhard avatar Oct 18 '23 13:10 willydouhard