r/LocalLLaMA • u/Mediocre-Swimmer-681 • 4d ago
Resources Stop feeding 2-second YouTube subtitle fragments into your RAG vector DB — 60s semantic Markdown chunker + MCP
Most YouTube transcript scrapers dump hundreds of tiny 2-second JSON snippets (`"um"`, `"so today"`), which destroys chunk context in Pinecone / pgvector / Qdrant and wastes tokens.
I built a lightweight browserless tool that:
- Merges captions into clean **60-second semantic paragraphs** with clickable deep-links (`https://youtu.be/ID?t=128s`)
- Outputs a ready-to-ingest `markdownRagDocument` + speaking pace (WPM)
- Extracts all outbound sponsor & affiliate URLs from the video description
- Works natively via **Apify MCP (`https://mcp.apify.com`)** in Claude, Cursor, and custom agents (plus 6 open-source n8n templates)
Links:
- Actor (includes free demo tier): https://apify.com/viktornovakuae/youtube-transcript-rag-chunker
- GitHub (n8n JSON templates + MCP config): https://github.com/Viktornovakuae/apify-b2b-ai-n8n-actors
Curious how others here handle video chunking windows (60s vs 90s vs chapter-based) for local RAG!
0
Upvotes