Zack Saadioui
8/24/2024
1
unstructured
1
2
bash
pip install unstructured
1
2
python
from langchain_community.document_loaders import UnstructuredMarkdownLoader
1
2
3
4
python
markdown_path = 'path/to/your/document.md'
loader = UnstructuredMarkdownLoader(markdown_path)
data = loader.load()
1
load
1
2
python
print(data)
1
UnstructuredMarkdownLoader
1
mode='elements'
1
2
3
python
loader = UnstructuredMarkdownLoader(markdown_path, mode='elements')
data = loader.load()
1
MarkdownHeaderTextSplitter
1
RecursiveCharacterTextSplitter
1
MarkdownHeaderTextSplitter
Copyright © Arsturn 2024