// Creates and maintains Knowledge Base topics from YouTube channels by resolving recent or full uploads, scaffolding yt-channels topics, ingesting transcripts through kb ingest youtube, and validating/indexing the result. Use when turning a YouTube channel into a Karpathy KB topic. Do not use for single-video ingestion, general video summaries, or non-YouTube sources.
Creates and maintains Knowledge Base topics from YouTube channels by resolving recent or full uploads, scaffolding yt-channels topics, ingesting transcripts through kb ingest youtube, and validating/indexing the result. Use when turning a YouTube channel into a Karpathy KB topic. Do not use for single-video ingestion, general video summaries, or non-YouTube sources.
Confirm kb topic info yt-channels/ returns the expected topic path and source count.
Confirm /outputs/reports/ contains the channel ingest report for the run.
Confirm kb search "" --topic yt-channels/ --collection --lex --format json returns raw transcript or index content after indexing.
Leave wiki article compilation to the normal kb compile workflow unless the user explicitly asks for article synthesis.
Error Handling
If channel resolution fails, read references/troubleshooting.md and retry after updating yt-dlp or YouTube proxy/cookie settings.
If captions are unavailable and --transcribe captions was selected, report the failed video and rerun only when the user chooses --transcribe auto or stt.
If STT fails, read references/troubleshooting.md to check ffmpeg, provider credentials, model, chunk size, and network settings.
If a partial topic exists after failure, rerun the same command. The script reuses the existing topic and skips videos whose source URLs are already present in raw/youtube.