You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider providing separate elements for the chat input and chat output?
I'd like to have a chatbot that responds through tool use (like your sidebot), but I want to hide the SQL query and explanation behind a modal or tool tip rather than having it take up space under the chat reply.
Comparable interfaces, like streamlit, provide separate elements for chat input and chat messages (as well as a few other utilities). This can be helpful for giving the developer more control over the interface.
The text was updated successfully, but these errors were encountered:
A more Streamlit-inspired chat API is a worthy discussion to have for its own reasons, but can you say more about why it would help with your particular problem (which I interpret as injecting slightly different markup into the assistant response during a tool call)? Like this line could be changed to insert a tooltip instead of a code block, would that not work for your case?
(One limitation with how it works today is that you can only append markdown, not fancy htmltools/htmlwidgets, but that’s something we could just fix.)
Um, good question, yeah maybe this can be handled with slightly different markup as you say, but it wasn't clear to me how to do it.
e.g. here's an example shiny app where I was trying to do this https://huggingface.co/spaces/boettiger-lab/geo-llm-r (links to source code as well, with apologies as I'm only just learning shiny finally). I jury-rigged this with just base shiny inputs, since I want it to do things like update the name of the LLM selected and show/hide the accordion with separate elements describing the sql and the human readable version. I'd love to be able to express this more cleanly with shinychat
Would you consider providing separate elements for the chat input and chat output?
I'd like to have a chatbot that responds through tool use (like your sidebot), but I want to hide the SQL query and explanation behind a modal or tool tip rather than having it take up space under the chat reply.
Comparable interfaces, like
streamlit
, provide separate elements for chat input and chat messages (as well as a few other utilities). This can be helpful for giving the developer more control over the interface.The text was updated successfully, but these errors were encountered: