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

Challenge: Putting it all together - Python Tutorial

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

Challenge: Putting it all together

- [Instructor] In the previous labs, we enabled PDF document upload and processing, and we built a search engine to ingest the documents. In this lab, we are going to put everything together and create a full chat with PDF application using Langchain. So that's first navigate to app.py. on_chat_start, we first ask the users to upload a PDF file. Then we load and chunk the PDF file and ingest them into our Chroma search engine. Now we will have to create our chain to retrieve with QA, so this is the retrieval augmented generation portion. When we retrieve, usually we would like to retrieve sources as well to provide to the users so they have grounding and trust to the documents and the answers that we provided. This is super exciting. Let's get to work.

Contents