Search

Search IconIcon to open search

Specialized Chunking

Last updatedUpdated: by Jakub Žovák · 1 min read

Properties
created 07.02.2025, 16:38
modified 02.08.2026, 10:12
published Empty
topics Chunking
authors Jakub
ai-assisted No

Markdown and LaTeX are two examples of structured and formatted content you might run into.

# Markdown

1
2
3
4
5
from langchain.text_splitter import MarkdownTextSplitter
markdown_text = "..."

markdown_splitter = MarkdownTextSplitter(chunk_size=100, chunk_overlap=0)
docs = markdown_splitter.create_documents([markdown_text])

# Latex

1
2
3
4
from langchain.text_splitter import LatexTextSplitter
latex_text = "..."
latex_splitter = LatexTextSplitter(chunk_size=100, chunk_overlap=0)
docs = latex_splitter.create_documents([latex_text])