Org-mode
AOrg Mode document is a document editing, formatting, and organizing mode, designed for notes, planning, and authoring within the free software text editor Emacs.
UnstructuredOrgModeLoader
You can load data from Org-mode files withUnstructuredOrgModeLoader
using the following workflow.
from langchain_community.document_loadersimport UnstructuredOrgModeLoader
loader= UnstructuredOrgModeLoader(
file_path="./example_data/README.org", mode="elements"
)
docs= loader.load()
print(docs[0])
API Reference:UnstructuredOrgModeLoader
page_content='Example Docs' metadata={'source': './example_data/README.org', 'category_depth': 0, 'last_modified': '2023-12-19T13:42:18', 'languages': ['eng'], 'filetype': 'text/org', 'file_directory': './example_data', 'filename': 'README.org', 'category': 'Title'}
Related
- Document loaderconceptual guide
- Document loaderhow-to guides