mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-13 21:29:22 +03:00
2.4 KiB
2.4 KiB
In [1]:
from langchain.document_loaders import UnstructuredODTLoaderIn [2]:
loader = UnstructuredODTLoader("example_data/fake.odt", mode="elements")
docs = loader.load()
docs[0]Out [2]:
Document(page_content='Lorem ipsum dolor sit amet.', metadata={'source': 'example_data/fake.odt', 'filename': 'example_data/fake.odt', 'category': 'Title'})In [ ]: