chainlit
chainlit copied to clipboard
Add drop-down button
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.
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 :)
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.
Should now be possible with chat settings!
@willydouhard How we can use dropdown value for conditions like to call different chain on different options ?
Example here. We also added Chat Profiles in the latest release that you might find useful.