From the course: Hands-On AI: Building LLM-Powered Apps
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Prompt playground for LLM apps - Python Tutorial
From the course: Hands-On AI: Building LLM-Powered Apps
Prompt playground for LLM apps
- [Instructor] In this video, we will go through how to operate a prompt playground that's built-in in Chainlit. The prompt playground will greatly accelerate the prompt iteration process and allow us to see the results in real time. Now let's start the application and upload a simple PDF file, and then let's start asking questions. The question we had the problem with is what is the operating margin? So that's going to ask this question and it says the operating margin is not provided in the given information. From here, we can see that it took one step so let's click on the downward pointing arrow to expand this. And it says, took two steps. Let's expand that again, and here is the retriever doing its work, retrieving the documents, and then it goes to StuffDocumentsChain and it took one step and it caused the MChain, it took one step. And the result is the operating margin is not provided. So now here is a little bug icon. So if we click on this, we can inspect everything in the…