
Step 1: Create a Chainlit Application
Inapp.py
, import the necessary packages and define one function to handle a new chat session and another function to handle messages incoming from the UI.
With Embedchain
app.py
Step 2: Run the Application
To start your app, open a terminal and navigate to the directory containingapp.py
. Then run the following command: