README
This guide explains how to export YouTube video transcripts from the k3s-deployed YouTube Transcript project into Lattice for knowledge graph indexing and semantic search.
Documents
| Document | Description |
|---|---|
| Data Access | How to access transcript data from k3s/MinIO |
| Export Workflow | Steps to export and sync to Lattice |
Architecture Overview
┌─────────────────────────────────────────────────────────────────┐│ k3s Cluster │├─────────────────────────────────────────────────────────────────┤│ youtube-transcript-worker → SQLite DB → Litestream → MinIO│ (GPU transcription) (Prisma) (replication) │└─────────────────────────────────────────────────────────────────┘ │ ▼ litestream restore┌─────────────────────────────────────────────────────────────────┐│ Local Machine │├─────────────────────────────────────────────────────────────────┤│ SQLite DB → export_to_lattice.py → Markdown Files ││ │ ││ ▼ ││ lattice sync ││ │ ││ ▼ ││ DuckDB Graph ││ (entities + embeddings) │└─────────────────────────────────────────────────────────────────┘Quick Start
# 1. Restore database from MinIOcd ~/Projects/uptownhr/agents/packages/youtube-transcriptAWS_ACCESS_KEY_ID=minio AWS_SECRET_ACCESS_KEY=minio123 \ litestream restore -config litestream-restore.yml /tmp/youtube-transcripts.db
# 2. Export to markdown (test with 10 first)python export_to_lattice.py --db /tmp/youtube-transcripts.db \ --output ~/.lattice/docs/youtube-transcripts/ --limit 10
# 3. Sync to Latticelattice sync
# 4. Search transcriptslattice search "housing market crash"Data Stats
As of Dec 2025:
- 658 videos tracked
- 646 transcripts with full content
- 646 AI-generated takeaways with analysis