LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Retrieval Augmented Generation (RAG) with LangChain

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Create a document loader for README.md and load it
loader = ____

markdown_data = ____
print(markdown_data[0])
Code bearbeiten und ausführen