Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building Local AI Agents with DeepSeek-R1, Ollama, Pydantic and LangGraph for Reddit Analysis

Venelin Valkov via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Build a fully local AI agent workflow for analyzing Reddit posts using LangGraph's functional API, Pydantic, and Streamlit UI in this comprehensive tutorial video. Master the implementation of human-in-the-loop functionality and custom agent tools that run entirely on your local machine. Follow along with the step-by-step development process, starting from basic project setup and dependencies through to creating LLM models with Ollama and Groq API, designing domain data classes, and implementing the complete LangGraph workflow. Explore the creation of specialized agents for post fetching, filtering, analysis, and report writing, while learning to integrate custom document search tools. Conclude with building an interactive Streamlit interface and testing the complete system on r/singularity posts. Perfect for developers interested in building sophisticated AI workflows with modern tools like DeepSeek-R1, Qwen2.5, and LangChain.

Syllabus

00:00 - Demo
00:17 - Welcome
01:10 - Source code for MLExpert Pro subscribers
01:47 - Building effective agents
03:58 - Architecture of our agentic workflow
05:34 - Fetching Reddit posts and comments
07:11 - Project setup, dependencies, config
10:35 - Creating LLM Ollama, Groq API and embedding models
11:28 - Domain data classes Post, Comment, Report
13:32 - LangGraph workflow
17:54 - Agents post fetcher, post filter, human-in-the-loop
22:35 - Custom tool search/filter documents
28:14 - Post-analyzer/summarizer agent
30:37 - Report writer agent
32:45 - Streamlit UI
36:49 - Test the app Analyze r/singularity posts
39:03 - Agent logs
39:31 - Conclusion

Taught by

Venelin Valkov

Reviews

Start your review of Building Local AI Agents with DeepSeek-R1, Ollama, Pydantic and LangGraph for Reddit Analysis

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.