Docs to RAG Chunks — Ultra-Fast LLM Documentation Scraper
Pricing
$2.00 / 1,000 documentation page processeds
Docs to RAG Chunks — Ultra-Fast LLM Documentation Scraper
Ultra-fast LLM documentation scraper & heading-aware RAG chunker. Auto-detects llms.txt, sitemaps, and 12+ doc frameworks with code-safe token chunking, SHA-256 incremental sync, and LangChain/LlamaIndex/Pinecone/Qdrant export.
Pricing
$2.00 / 1,000 documentation page processeds
Rating
0.0
(0)
Developer
Weiyi Wang
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Docs to RAG Chunks — Ultra-Fast LLM Documentation Scraper & Chunker
Turn any documentation site, API reference, or help center into clean, heading-aware, token-bounded RAG chunks ready for Pinecone, Qdrant, Weaviate, LangChain, LlamaIndex, OpenAI Vector Stores, and MCP AI Agents — up to 20× faster and 90% cheaper than headless browser crawlers.
Verified Cloud Benchmark (512 MB RAM, Zero Headless Browser Bloat)
| Metric | Docs to RAG Chunks | Typical Browser-Based Crawler |
|---|---|---|
| 10 Documentation Pages | 4 seconds (179 RAG chunks) | 45–90 seconds (10 raw HTML blobs) |
| Platform Compute Cost | ~$0.001 / 10 pages | ~$0.02–$0.08 / 10 pages |
| Output Format | Ready-to-embed token-bounded chunks | Unchunked HTML/Markdown with nav noise |
| Code Block Protection | Preserves language tags & # comments | Frequently splits mid-function |
| Incremental Re-Sync | Built-in SHA-256 skip ($0 on unchanged pages) | Re-scrapes & re-embeds everything |
Supported Frameworks & Output Formats
- 12+ Documentation Frameworks: Docusaurus, Mintlify, GitBook, MkDocs Material, VitePress, Nextra, Astro Starlight, Sphinx / ReadTheDocs, ReadMe, Zendesk, Intercom, plus clean semantic HTML fallback.
- Smart Discovery Pipeline: Automatically checks
llms-full.txtandllms.txtfirst, falls back tositemap.xml/sitemap_index.xml, and performs prefix-locked crawling withrobots.txtcompliance. - 5 Native Export Presets:
standard,langchain,llamaindex,pinecone, andqdrant.
Quick Start Examples
1. Python (apify-client)
from apify_client import apify_clientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("weiyi-ai/docs-to-rag-chunks").call(run_input={"startUrls": [{"url": "https://www.python-httpx.org/"}],"maxPages": 25,"discoveryMode": "auto","maxTokensPerChunk": 512,"chunkOverlapTokens": 50,"outputFormat": "langchain",})chunks = list(client.dataset(run["defaultDatasetId"]).iterate_items())summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")["value"]print(f"Extracted {len(chunks)} chunks across {summary['pagesProcessed']} pages")
2. Apify MCP Server (Claude Desktop, Cursor, Windsurf & AI Agents)
Connect this Actor directly as a live documentation ingestion tool via the official Apify MCP endpoint:
{"mcpServers": {"apify-docs-rag": {"url": "https://mcp.apify.com/?actors=weiyi-ai/docs-to-rag-chunks","headers": {"Authorization": "Bearer YOUR_APIFY_TOKEN"}}}}
3. Incremental Sync (Save 90% on Vector Embedding Bills)
- Run the Actor once and store
summary["pageHashes"]from theSUMMARYKey-Value Store record. - On your next scheduled daily/weekly run, pass
previousPageHashes: summary["pageHashes"]. - Unchanged pages are skipped automatically — you pay $0 for skipped pages and skip redundant OpenAI/Cohere embedding calls.
Example Output (standard preset)
{"chunkId": "56207d49375e-0000-a3358fb9","url": "https://www.python-httpx.org/","pageTitle": "HTTPX","framework": "mkdocs","headingPath": ["HTTPX", "QuickStart"],"chunkIndex": 0,"totalPageChunks": 5,"tokenCount": 213,"charCount": 802,"hasCodeBlock": true,"hasTable": false,"chunkHash": "a3358fb970e5d7d007e5166294efb5332d047a38f4d62f02d9efe3cf0e592888","pageContentHash": "8c029c8cfa70ad5ddbc27acd07615e0208434ba25a40445f3ba46b9e97e490cc","text": "Document: HTTPX > QuickStart\nSource: https://www.python-httpx.org/\n---\n# HTTPX\n...","scrapedAt": "2026-11-26T03:19:38.215433+00:00"}
Transparent Pay-Per-Event Pricing
- Only charged per successfully processed page (
page-processed) that produces valid RAG chunks. - Free when skipped or failed: Unchanged pages skipped via
previousPageHashes, 404s, and empty boilerplate pages are never charged.
FAQ
Q: Why does this Actor not break Python or Bash # comments inside code blocks?
Unlike naive regex splitters that split on every ^#, our parser tracks fenced code block boundaries (``` / ~~~) first so comments inside code never become false section headings, and keeps code blocks intact with their language tags.
Q: How accurate are the token counts?
Every chunk is measured directly with OpenAI's tiktoken (cl100k_base) encoding, guaranteeing chunks stay safely inside your embedding model's context window.
Q: Can I use this in n8n, Make, or Zapier?
Yes! Trigger the Actor via the native Apify node in n8n/Make, read the dataset items directly into Pinecone, Qdrant, Supabase pgvector, or Weaviate, and pass SUMMARY.pageHashes back on the next run.
Q: Does it work with llms.txt and llms-full.txt?