Markdown Header Text Splitter
by codepoetry
Split Markdown into structured chunks using header hierarchy. Built with LangChain, it preserves metadata for RAG, documentation, and analysis. Config...
Opens on Apify.com
About Markdown Header Text Splitter
Split Markdown into structured chunks using header hierarchy. Built with LangChain, it preserves metadata for RAG, documentation, and analysis. Configure headers, strip content, and integrate with vector databases. Ideal for AI workflows.
What does this actor do?
Markdown Header Text Splitter is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
📄 Markdown Header Splitter Actor Split Markdown content into structured chunks using header hierarchy This actor intelligently splits Markdown documents into semantically meaningful chunks based on header hierarchy. Built with LangChain's MarkdownHeaderTextSplitter, it preserves metadata and structure for downstream applications like RAG systems, documentation processing, and content analysis. --- ## 🚀 Key Features ✅ Header-Based Chunking Split content at specified header levels (e.g., #, ##, ###). ✅ Metadata Preservation Each chunk includes hierarchical header metadata for context tracking. ✅ Flexible Configuration - Choose which headers to split on - Strip headers from content or retain them - Works with any Markdown content ✅ RAG-Ready Output Chunks are formatted for direct use in vector databases or LLM pipelines. --- ## 📝 Use Cases 1. RAG Systems Split long documents into context-aware chunks for: - Vector database indexing - Context window optimization - Knowledge retrieval 2. Documentation Processing Break technical docs into sections for: - Summarization - Translation - Search indexing 3. Content Analysis Analyze/report on document structure (e.g., API reference parsing). --- ## 🛠️ Getting Started ### Installation 1. Create an Apify account at apify.com 2. Navigate to Actor → Search for markdown-splitter 3. Run with Sample Input: json { "markdown_text": "# Title\n## Section 1\nContent...\n## Section 2\nMore content...", "headers_to_split_on": ["#", "##"], "strip_headers": true } ### Input Parameters | Field | Type | Description | |---------------------|---------------|-----------------------------------------------------------------------------| | markdown_text | string | Markdown content to split (required) | | headers_to_split_on | array | Header levels to split on (default: ["#", "##", "###", "####", "#####", "######"]) | | strip_headers | boolean | Remove headers from chunk content (default: true) | ### Output Format json { "chunks": [ { "content": "Section content here", "metadata": { "Header 1": "Title", "Header 2": "Section 1" } }, ... ] } --- ## 📚 Example Workflow: RAG System Integration 1. Input: Technical documentation in Markdown 2. Process: - Split into sections using ## headers - Strip headers to focus on content 3. Output: - Chunks with hierarchy metadata → Embed with OpenAI/LLama - Store in your favorite vector database like : ChromaDB/Pinecone/Weaviate for retrieval
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Markdown Header Text Splitter now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- codepoetry
- Pricing
- Paid
- Total Runs
- 241
- Active Users
- 5
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Legacy PhantomJS Crawler
by apify
Content Checker
by jakubbalada
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support