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.

Coding for logging

Coding for logging

To this point, you've looked at what LLMs are and you've briefly looked at how they worked. We explored some of the ideas of LLMOps, namely, how you can have a process of continually improving your app from user feedback. In your last exercise, you took a simple chat app written in Node.js and you added some code to log all the conversations between the user and the chatbot. I'd like to drill down into that so we can see what it looks like to create a logging system. We'll look in detail at the server.js file, so make sure you have a copy of it on hand. It is available in the GitHub repo for this course. Now this is the back end for the chat application. The front end is the HTML code that contains JavaScript code that manages the user interface, rendering and styling the chat messages and capturing the user's input. And you can find that in the download, too. But I'm just going to focus on the back end in this video. At the top of your file is the set of require commands that specify…

Contents