1. Learn
  2. /
  3. Courses
  4. /
  5. Retrieval Augmented Generation (RAG) with LangChain

Connected

Exercise

Loading code files

Chatbots can not only access text files, but also code files like Python (.py) and Markdown files (.md). In this exercise, you'll load a Python file containing the RAG architecture you created in Chapter 1. Let's load the file to get a reminder!

All of the classes needed to complete this exercise are already loaded.

Instructions 1/2

undefined XP
  • 1
    • Create a document loader from 'README.md' and load the document into memory.
  • 2
    • Create a document loader from 'rag.py' and load the document into memory.