HTML document loaders
It's possible to load documents from many different formats, including complex formats like HTML.
In this exercise, you'll load an HTML file containing a White House executive order.
Bu egzersiz
Developing LLM Applications with LangChain
kursunun bir parçasıdırEgzersiz talimatları
- Use the
UnstructuredHTMLLoaderclass to load thewhite_house_executive_order_nov_2023.htmlfile in the current directory. - Load the documents into memory.
- Print the first document.
- Print the first document's metadata.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
from langchain_community.document_loaders import UnstructuredHTMLLoader
# Create a document loader for unstructured HTML
loader = ____
# Load the document
data = ____
# Print the first document
print(____)
# Print the first document's metadata
print(____)