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

YouTube

Build a Language-Learning Agent with OpenAI, LangGraph, Ollama and MCP

JetBrains via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a comprehensive language-learning AI agent from scratch using Python, LangGraph, OpenAI, Ollama, and the Model Context Protocol (MCP) in this hands-on tutorial. Master the fundamentals of AI agents by creating a ReAct-style system that sources vocabulary, performs accurate translations, and automatically generates Anki flashcards for language learning. Begin with dataset selection and preparation, exploring multilingual vocabulary datasets from Kaggle and UCI repositories while learning essential data cleaning techniques using pandas, SpaCy, and wordfreq libraries. Dive deep into natural language processing concepts including word embeddings, transformers, self-attention mechanisms, and GPT architectures to understand how large language models process language. Explore the core concepts of AI agents, including the thought-action-observation loop, agent state management, and tool integration. Build custom tools for LangGraph agents while learning to manage API keys securely and improve agent reliability through effective system prompts. Compare proprietary models like GPT-4 with open-source alternatives using Ollama, and learn to run AI agents entirely locally. Implement advanced features such as difficulty-aware vocabulary selection, multi-step tool usage, and structured output parsing from language models. Handle real-world challenges including error management, non-deterministic behavior, and ambiguous user requests. Conclude by integrating external tools through the Model Context Protocol, creating a fully functional AI assistant that can be adapted for various AI projects. No prior NLP background required, as the tutorial explains both theoretical concepts and practical implementation details throughout the development process.

Syllabus

- Course Intro: What We’ll Build, AI agent tech stack
- What You’ll Learn: Building an AI Language Learning Agent
– Who This AI Agent Tutorial Is For Python Prerequisites
– Instructor Introduction: NLP & Data Science Background
– Why Use PyCharm for AI Agents & Data Science
– Installing PyCharm and AI Assistant
– Creating a Python Project with Virtual Environments
– Choosing a Multilingual Vocabulary Dataset
– Best NLP Datasets: Kaggle & UCI Repositories
– Cloning and Organizing NLP Datasets in PyCharm
– Installing NLP Libraries: pandas, SpaCy, wordfreq
– Installing LangChain, LangGraph & MCP Libraries
– Exploring NLP Data with Jupyter Notebooks
– Analyzing Vocabulary Size Across Languages
– Visualizing Word Counts with Pandas Charts
– Identifying Data Problems in Multilingual Word Lists
– Introduction to SpaCy for Natural Language Processing
– Inspecting and Debugging Raw Vocabulary Data
– Removing Noise: Basic Text Cleaning Techniques
– Lemmatizing Words with SpaCy Models
– Using Zipf’s Law Overview to Filter Rare Words
– Word Frequency Analysis with wordfreq and SpaCy
- Understand Word Frequencies with wordfreq
– Building a Complete NLP Cleaning Pipeline
– Validating Results with a Spanish Dataset
– Comparing Raw vs Cleaned NLP Data
– From Clean Data to an AI Agent
– What Is an AI Agent? Core Concepts
– Thought-Action-Observation Loop Explained
– Types of AI Agents
– How Large Language Models Understand Language
– Word Embeddings & Word2Vec Explained
– Why Word Embeddings Fail Without Context
– Transformers & Self-Attention Explained
– GPT Models and Decoder-Only Architectures
– Why Reasoning Models Power AI Agents
– How Reasoning Models Are Trained Chain-of-Thought
– When Not to Use Reasoning Models
How to Build a ReAct Agent with LangGraph
Agent State, Memory & Tools Explained
Choosing Between GPT-4 and Open-Source Models
How to Manage OpenAI API Keys Securely
How to Build Custom Tools for LangGraph Agents
Auto-Generating Tool Docstrings with AI
Improving Agent Reliability with System Prompts
Building and Connecting a LangGraph Agent Graph
Running an AI Agent End-to-End
How to Debug AI Agents in PyCharm
Visualizing Agent Execution Graphs
How to Run AI Agents Locally with Ollama
Choosing the Best Open-Source Reasoning Model
Installing and Managing Ollama Models
GPT-4 vs Ollama: Model Comparison for Agents
Switching LangGraph Agents from OpenAI to Ollama
Testing a Fully Local AI Agent
Adding Difficulty-Aware Vocabulary Tools
Handling Ambiguous User Requests in AI Agents
Testing AI Agents with Natural Language Prompts
How to Translate Words Using an LLM Tool
Building a Translation Tool with Ollama
Parsing Structured Output from LLMs
Multi-Step Tool Use in ReAct Agents
Handling Errors and Non-Determinism in AI Agents
What Is MCP Model Context Protocol?
Connecting AI Agents to External Tools with MCP

Taught by

PyCharm by JetBrains

Reviews

Start your review of Build a Language-Learning Agent with OpenAI, LangGraph, Ollama and MCP

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.