From the course: Build with AI: LLM-Powered Applications with Streamlit

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Maintain and improve your chatbot

Maintain and improve your chatbot

- [Instructor] Providing maintenance and improvement for your document Q&A chatbot can be the key between users actually utilizing your application versus navigating away if it is constantly broken. You'll maintain and improve your application with logging, measuring timings and surfacing logs in the application for live monitoring. Let's get started. Let's provide clear feedback using the 04_06b.py file. You'll begin by importing a few more packages, which you can import altogether so you can import logging, time and trace back. This will allow you to ensure that you are maintaining and improving your application. Once you scroll down a bit, you can add a title and let's have this be maintain and improve chatbot. Next, you'll want to configure a logging file. This is a file that you can reference when users interact with your application. And this rotating log file will have timestamps and levels where all information sent and received within the chatbot along with every error will…

Contents