Front-end with Streamlit
Streamlit is a Python library that allows you to create and share web apps. It is designed to be easy and fast to use, without requiring any front-end experience or knowledge. You can write your app in pure Python, using simple commands to add widgets, charts, tables, and other elements.In addition to its native capabilities, in July 2023 Streamlit announced an initial integration and future plans with LangChains. At the core of this initial integration there is the ambition of making it easier to build GUI for conversational applications, as well as showing all the streps LangChain’s agents take before producing the final response.To achieve this goal, the main module that Streamlit introduced is the Streamlit callback handler. This module provides a class called StreamlitCallbackHandler
that implements the BaseCallbackHandler
interface from LangChain. This class can handle various events that occur during the execution of a LangChain pipeline, such as...