mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-19 08:09:21 +03:00
1.9 KiB
1.9 KiB
In [1]:
from langchain.document_loaders import UnstructuredRSTLoaderIn [2]:
loader = UnstructuredRSTLoader(file_path="example_data/README.rst", mode="elements")
docs = loader.load()In [3]:
print(docs[0])page_content='Example Docs' metadata={'source': 'example_data/README.rst', 'filename': 'README.rst', 'file_directory': 'example_data', 'filetype': 'text/x-rst', 'page_number': 1, 'category': 'Title'}
In [ ]: