RAG Table-Aware Markdown & HTML Chunker (MCP) avatar

RAG Table-Aware Markdown & HTML Chunker (MCP)

Pricing

$2.00 / 1,000 document chunkeds

Go to Apify Store
RAG Table-Aware Markdown & HTML Chunker (MCP)

RAG Table-Aware Markdown & HTML Chunker (MCP)

Zero-scraping deterministic Markdown & HTML chunker for RAG pipelines. Protects tables intact, auto-repeats headers on oversized splits, adds heading breadcrumbs & CJK token counts.

Pricing

$2.00 / 1,000 document chunkeds

Rating

0.0

(0)

Developer

對帳 秒

對帳 秒

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Stop naive text splitters from slicing financial tables in half and destroying your RAG retrieval quality.

Standard character splitters (RecursiveCharacterTextSplitter) tear Markdown and HTML tables apart mid-row, stripping column headers from downstream rows so vector search retrieves meaningless numbers.

RAG Table-Aware Chunker is a 100% zero-scraping, zero-dependency, pure-compute Actor & MCP Tool that transforms raw Markdown or HTML strings into retrieval-ready JSON chunks:

  • Atomic Table Protection: Keeps tables intact whenever they fit within maxTokens.
  • Header-Repeating Row Splitting: Automatically splits oversized tables along row boundaries and prepends the original table header row to every continuation chunk (tableSplitPart: "1/3", "2/3", "3/3").
  • Native HTML Table Support: Converts HTML <table>, <h1>-<h6>, and <pre><code> blocks into clean Markdown chunks without browser overhead.
  • Hierarchical Heading Breadcrumbs: Tracks H1 > H2 > H3 context on every chunk so embeddings always know where a row came from.
  • CJK-Aware Deterministic Token Estimator: Accurately accounts for English words, CJK characters (Chinese/Japanese/Korean), numbers, and table pipe punctuation across openai-o200k, openai-cl100k, claude, and gemini profiles.

Pricing (Pay-Per-Event)

  • document-chunked: $0.002 USD per non-empty document ($2.00 per 1,000 documents).
  • Empty inputs are never charged. Zero proxies, zero external API calls, minimal 128–256MB memory footprint.

Example Input

{
"docId": "q4-pricing-guide",
"document": "# Enterprise Plans\n\n## Tier Comparison\n\n| Tier | Seats | Monthly Price |\n|---|---|---|\n| Starter | 5 | $49 |\n| Growth | 25 | $199 |\n| Enterprise | Unlimited | $799 |\n",
"options": {
"format": "auto",
"maxTokens": 256,
"repeatTableHeaders": true,
"injectBreadcrumbs": true,
"tokenizerProfile": "openai-o200k"
}
}

Example Output

{
"docId": "q4-pricing-guide",
"chunkIndex": 0,
"totalChunks": 1,
"chunkType": "table",
"breadcrumbs": ["Enterprise Plans", "Tier Comparison"],
"tokenCount": 62,
"charCount": 195,
"tableSplitPart": null,
"content": "[Section: Enterprise Plans > Tier Comparison]\n\n| Tier | Seats | Monthly Price |\n|---|---|---|\n| Starter | 5 | $49 |\n| Growth | 25 | $199 |\n| Enterprise | Unlimited | $799 |"
}

Security & Compliance

This Actor operates 100% in memory on text strings supplied directly in the JSON payload. It does not accept external URLs, does not scrape websites, and performs zero outbound HTTP requests.