From the course: Hands-On AI: Building LLM-Powered Apps

Challenge: Fixing hallucination via prompting - Python Tutorial

From the course: Hands-On AI: Building LLM-Powered Apps

Challenge: Fixing hallucination via prompting

- [Instructor] In the previous video, we demonstrated Chainlit's Prompt Playground and their basic usages. In this lab, we will put our new tool to work. We will utilize Chainlit's Prompt Playground to diagnose and fix the prompt to correct the deficiencies that we observed. So let's review how to get to Prompt Playground. We will browse the file, upload our simple PDF document. It's going to take a bit to load. And now we will ask the question that it wasn't able to answer. "What is the operating margin?" And we will expand with all the steps, goes to the bottom of the chain, and then click on the bug icon. And this brings us to the Prompt Playground. As a reminder, please feel free to review our prompt engineering lesson in the RACIF framework. Now that's work to make our chat with PDF application to produce the right answers. Have fun.

Contents