How gwangil/youtube_agent works
YouTube Agent collects channel videos, obtains transcripts through captions or STT, indexes content for RAG search, and provides administration, cost controls, monitoring, and data-integrity support. The README documents the end-to-end processing stages; excerpts additionally show collector-to-extractor/database/job behavior and the agent API-to-RAG relationship. Several worker and integration internals were not excerpted, so those links are documented flows rather than claims about specific calls.
Main entry points: app.py Channel collector · stt_worker.py STT processing · database.py Content metadata · vectorize_worker.py Vectorization worker
Components 22
Collection and transcripts
- Channel collector
services/data-collector/app.py - Video extractor
src/youtube_agent/youtube_extractor.py - Content metadata
shared/models/database.py - Processing jobs
shared/models/database.py - STT processing
services/data-processor/stt_worker.py - Whisper processor
src/youtube_agent/stt_processor.py - STT cost controls
services/data-processor/stt_cost_manager.py - Transcript records
shared/models/database.py
Processing and indexing
- Vectorization worker
services/data-processor/vectorize_worker.py - Embedding utilities
shared/utils/embeddings.py - Vector search store
Search and management
- Cost approvals API
services/data-processor/stt_cost_api.py - RAG API
services/agent-service/app.py - RAG workflow
services/agent-service/rag_agent.py - Admin dashboard
services/admin-dashboard/app.py
Operations and integrity
- Integrity manager
services/data-integrity/data_integrity_manager.py - Transactional recovery
services/data-integrity/transaction_manager.py - Quality dashboard
services/data-integrity/quality_dashboard.py - Processing monitoring
services/data-processor/monitoring_api.py - Processor service
services/data-processor/app.py
Other components
- YouTube
- Questioner
Connections 24
- YouTube → Channel collector: provides channel content
README.md - Channel collector → Video extractor: gets video metadata
services/data-collector/app.py - Video extractor → YouTube: retrieves videos and captions
src/youtube_agent/youtube_extractor.py - Channel collector → Content metadata: stores content
services/data-collector/app.py - Channel collector → Processing jobs: queues transcript jobs
services/data-collector/app.py - Processing jobs → STT processing: dispatches work
README.md - STT processing → Whisper processor: processes audio
- STT processing → STT cost controls: checks and records cost
services/data-processor/stt_worker.py - Cost approvals API → STT cost controls: manages approvals
services/data-processor/stt_cost_api.py - STT processing → Transcript records: writes transcript
README.md - Transcript records → Vectorization worker: supplies text for indexing
README.md - Vectorization worker → Embedding utilities: creates vectors
- Vectorization worker → Vector search store: stores vectors
README.md - Questioner → RAG API: submits query
README.md - RAG API → RAG workflow: routes search
services/agent-service/app.py - RAG workflow → Vector search store: searches vectors
README.md - RAG workflow → RAG API: returns timestamped answer
services/agent-service/rag_agent.py - Admin dashboard → Content metadata: manages channels and content
- Integrity manager → Content metadata: checks metadata consistency
services/data-integrity/data_integrity_manager.py - Integrity manager → Vector search store: checks vector consistency
services/data-integrity/data_integrity_manager.py - Quality dashboard → Integrity manager: presents integrity status
services/data-integrity/quality_dashboard.py - Quality dashboard → Transactional recovery: uses recovery operations
- Processing monitoring → Content metadata: reports processing status
services/data-processor/monitoring_api.py - Processor service → Processing jobs: coordinates processing
services/data-processor/app.py