Chainlit Integration in dbtunnel¶
Description¶
Build production-ready Conversational AI applications in minutes, not weeks ⚡️. This integration lets you run chainlit applications inside databricks clusters.
Installation¶
To use Chainlit, you can install it along with the required dependencies using the following command:
Driver Notebook Setup¶
To set up the driver notebook for Chainlit, follow these steps:
-
Get the current directory and specify the path to your Chainlit script file:
-
Import the dbtunnel library and run the chainlit script
Chainlit Specific Code¶
In your Chainlit script (chainlit_example.py), you can define custom logic for your chainlit application. The provided code snippet is a basic example that responds to incoming messages: