From the course: LLMOps in Practice: A Deep Dive

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

LLM exercise

LLM exercise

At this point, you should have a version of the app running on your machine. You can chat with it about doing talks, and you can see what will happen as you have a conversation with it. But ultimately, we're trying to build something with proper MLOps, and the first step in that journey is logging. This is a website which by definition can have multiple users, so you'll need to update the site with logging on a per-user basis, and the logs should be stored in JSON format. Now here's a hint. You can use an LLM like ChatGPT or Claude and pass it your working code if you want to see if it can update it. But for a real challenge, try to do it yourself. Here's a look at the working solution, including the logs. When the server isn't running, Chrome can't reach the site as shown here, but you can start the server from the command line. When it is running, you can refresh the browser, and then you can see that the chatbot will run, and in the console, the session is going to be assigned a…

Contents