ChatBot App - presenting two responses, and having users select which one they prefer

Hello everyone,

I’ve built a chatbot app using Streamlit and am interested in experimenting with different large language models (LLMs) and prompt configurations. My goal is to present users with two responses to their question and allow them to choose which response to keep before proceeding to the next question.

I haven’t been able to find examples of this approach, and I assume it’s a relatively common design pattern. Could anyone provide guidance or point me towards best practices for implementing this feature in Streamlit? Any advice or examples would be greatly appreciated!

Start by generating two responses instead of one.