How akarshvyas/agentic-ai-youtube works
This repository contains several standalone LangGraph examples rather than one integrated application. Its primary user-facing product is a college assistant: a student selects a programme and asks a question; the app classifies it, optionally retrieves academic or fee-document passages, and generates a programme-aware answer. Other scripts demonstrate iterative and human-reviewed writing, parallel safety analysis, and sequential text transformation. The graph follows calls and documented graph routing; the examples do not import one another.
Main entry points: app.py Query classifier · parallel_reducers.py Safety analysis graph · iterative_tools.py Post writer · humanintheloop.py Human-review graph
Components 34
College assistant
- Chat interface
app.py - Assistant graph
app.py - Query classifier
app.py - Academic retrieval
app.py - Fee retrieval
app.py - General response route
app.py - Answer generator
app.py - Knowledge-base setup
app.py - Academic handbook
academics_handbook.pdf - Fee structure
fee_structure.pdf - College language model
app.py
Writing workflows
- Post generator graph
iterative_tools.py - Post writer
iterative_tools.py - Search tool runner
iterative_tools.py - Web search
- Draft extractor
iterative_tools.py - Automated reviewer
iterative_tools.py - Human-review graph
humanintheloop.py - Post writer
humanintheloop.py - Human review pause
humanintheloop.py - Memory checkpoint
humanintheloop.py
Text analysis
- Safety analysis graph
parallel_reducers.py - Toxicity check
parallel_reducers.py - Copyright check
parallel_reducers.py - Culture check
parallel_reducers.py - Merged safety scores
parallel_reducers.py
Graph examples
- Text transformation graph
sequential_base.py - Text editor
sequential_base.py - Script writer
sequential_base.py - Hinglish translator
sequential_base.py
Other components
- Student
- Topic submitter
- Human reviewer
- Text input
Connections 41
- Student → Chat interface: asks question
app.py - Chat interface → Assistant graph: invokes graph
app.py - Assistant graph → Query classifier: starts at
app.py - Query classifier → College language model: classifies with
app.py - Query classifier → Academic retrieval: routes academic
app.py - Query classifier → Fee retrieval: routes fee
app.py - Query classifier → General response route: routes general
app.py - Academic retrieval → Academic handbook: retrieves from
app.py - Fee retrieval → Fee structure: retrieves from
app.py - Academic retrieval → Answer generator: passes context
app.py - Fee retrieval → Answer generator: passes context
app.py - General response route → Answer generator: passes query
app.py - Answer generator → College language model: generates with
app.py - Answer generator → Chat interface: returns answer
app.py - Knowledge-base setup → Academic handbook: loads document
app.py - Knowledge-base setup → Fee structure: loads document
app.py - Topic submitter → Post generator graph: provides topic
iterative_tools.py - Post generator graph → Post writer: starts at
iterative_tools.py - Post writer → Search tool runner: dispatches tools
iterative_tools.py - Search tool runner → Web search: searches web
iterative_tools.py - Post writer → Draft extractor: routes without tools
iterative_tools.py - Search tool runner → Automated reviewer: continues to review
iterative_tools.py - Draft extractor → Automated reviewer: submits draft
iterative_tools.py - Automated reviewer → Post writer: revises if rejected
iterative_tools.py - Topic submitter → Human-review graph: provides topic
humanintheloop.py - Human-review graph → Post writer: starts at
humanintheloop.py - Post writer → Human review pause: submits draft
humanintheloop.py - Human reviewer → Human review pause: approves or comments
humanintheloop.py - Human review pause → Post writer: rewrites if rejected
humanintheloop.py - Human-review graph → Memory checkpoint: checkpoints state
humanintheloop.py - Text input → Safety analysis graph: supplies text
parallel_reducers.py - Safety analysis graph → Toxicity check: runs in parallel
parallel_reducers.py - Safety analysis graph → Copyright check: runs in parallel
parallel_reducers.py - Safety analysis graph → Culture check: runs in parallel
parallel_reducers.py - Toxicity check → Merged safety scores: merges score
parallel_reducers.py - Copyright check → Merged safety scores: merges score
parallel_reducers.py - Culture check → Merged safety scores: merges score
parallel_reducers.py - Text input → Text transformation graph: supplies text
sequential_base.py - Text transformation graph → Text editor: starts at
sequential_base.py - Text editor → Script writer: passes edited text
sequential_base.py - Script writer → Hinglish translator: passes script
sequential_base.py