This example shows how to create a basic email assistant. This assistant takes in an email and will write a response. It allows you to prompt it with:
Then it generates questions for you for clarifications, and uses the answer to write a draft. It will go back and forth with you until you are satisfied with the response.
This demonstrates how to do multi-shot modeling interactively with an LLM. You'll learn:
To run this example, you need to install the following dependencies:
pip install -r requirements.txt
Then if you run jupyter lab you can open/execute the notebook. This simulates an interactive web app. The notebook is the best way to get started.
Note we will be adding two things to this demo:
Open the notebook
We have added Docker support along with a compose file and nginx as a proxy for the API and Burr UI. To run the email assistant app with these new features:
Run the following command:
docker compose up --build
This will start the email assistant app along with nginx, which allows you to access:
telemetry.localhostapi.localhostIf you prefer not to use subdomains powered by nginx, you can also access:
localhost:7242/docslocalhost:7241If you don't have a UI, go to demos and play with the email-assistant. Otherwise, connect to the Burr email server with your UI code.
Note: This setup does not mount a persistent volume, so state is lost once the container goes down.
We will be adding two things to this demo: