#Accordion UI component

1 messages · Page 1 of 1 (latest)

silver shore
#

It would be nice to have an accordion component. For RAG applications, it would allow to hide the sources/references, avoiding the answer to be too long, which doesn't look good in the bubble mode.

fleet imp
#

You mean the bubble that contains the user reply?

silver shore
#

Right now I have a bot replying to the user's query and then show the references (document sources + small text extracted from each source to back up the answer) in a separate bubble (or attach to the same bubble with the reply). For multiple references, this becomes a large text, which the user might not even be interested in reading. With an accordion, I could just hide it and the user decides to expand it.
Or alternatively, show a "Show sources" button and on-click show the sources. The problem is that the button will block the flow of conversation if not clicked