MENU

Fun & Interesting

100% Local AI Agents with DeepSeek-R1, Ollama, Pydantic and LangGraph - Private Agentic Workflow

Venelin Valkov 3,471 2 months ago
Video Not Working? Fix It Now

Source code (GitHub repository) and complete AI Bootcamp are available for MLExpert Pro subscribers: https://www.mlexpert.io/ Learn how to build a local AI agent (workflow) that analyzes Reddit posts using LangGraph (functional API), Pydantic and UI with Streamlit. You'll learn to integrate human-in-the-loop and build custom tools for your agents - all running locally on your machine. Building effective agents post: https://www.anthropic.com/research/building-effective-agents Ollama models: - https://ollama.com/library/deepseek-r1 - https://ollama.com/library/qwen2.5 AI Bootcamp: https://www.mlexpert.io/ LinkedIn: https://www.linkedin.com/in/venelin-valkov/ Follow me on X: https://twitter.com/venelin_valkov Discord: https://discord.gg/UaNPxVD6tv Subscribe: http://bit.ly/venelin-subscribe GitHub repository: https://github.com/curiousily/AI-Bootcamp 👍 Don't Forget to Like, Comment, and Subscribe for More Tutorials! 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 Join this channel to get access to the perks and support my work: https://www.youtube.com/channel/UCoW_WzQNJVAjxo4osNAxd_g/join #deepseek #aiagents #langgraph #llm #rag #langchain #chatgpt #chatbot #python #streamlit #artificialintelligence

Comment