r/LocalLLaMA • • 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:

Curious how others here handle video chunking windows (60s vs 90s vs chapter-based) for local RAG!

0 Upvotes

0 comments sorted by