โก Production-grade Agentic AI tutorials - Build LangGraph+AutoGen+RAG+llamaindex+AutoGen... systems from scratch. Classic repo reborn with weekly updates. Support open education with your โญ! ๐
Jupyter Notebook
0
38 commits
updated Aug 9, 2025
Welcome to AgenticU โ a curated, multi-project teaching repository focused on building modern Agentic AI systems with LLMs.
This project is built from my teaching journeys across Everywhere: in classrooms, workshops, and corporate trainings.
Inside, youโll find hands-on tutorials, code examples, and full project demos built with the latest frameworks in the LLM agent ecosystem, including:
Each folder in this repository is a standalone project or tutorial, covering a specific agentic technique, workflow, or framework.
Some are full applications, others are Jupyter notebook experiments.
Theyโre all designed to help you learn by building.
Example folders might include:
agentic_u/
โโโ langgraph_agents/
โโโ autogen_planner/
โโโ rag_crag_search_demo/
โโโ openai_function_calling/
โโโ realtime_webrtc/
โโโ agentic_ui_streamlit/
โโโ notebook_demos/
โโโ Controllable-RAG-Agent/
โโโ business-intelligence-ai-SQL-dashboard/
โโโ ollama_pdf_rag/
โโโ mcp-sql-dashboard/
โโโ Langgraph_BuildingAmbientAgents/
โโโ ai-experiments/
โโโ Flowise/
โโโ Langgraph_BuildingAmbientAgents/
โโโ langgraph/
Looking for the full archive from my previous teaching repo?
Youโll find detailed update logs, course plans, and project notes in:
๐ README_old.md
This archive comes from my original repo โ
AgenticAI_LLMs_Amazing_courses_Langchain_LlamaIndex โ which once had over 29stars before deletion.
| Folder | Description |
|---|---|
langgraph/ | LangGraph is a low-level orchestration framework for building, managing, and deploying stateful agents. |
function_calling_MCP/ | A multi-agent system for stock insights, combining RAG workflows to extract insights from news and financial data. |
muti-agent_crewai/ | A multi-agent system for stock insights, combining RAG workflows to extract insights from news and financial data. |
langgraph_agents/ | Stateful agents with LangGraph |
autogen_planner/ | Multi-agent coordination using AutoGen |
Agentic_Stock_Insight/ | An application for stock data insights, combining RAG workflows to extract insights from news and financial data. |
Short-Long_term_memory_simulation/ | An application for simulating short and long term memory |
ai-agent-papers/ | A curated collection of research papers on AI Agents, covering capabilities, architectures, and real-world applications, updated biweekly. |
context-Engineering/ | A complete tutorial on context engineering for AI agents. |
RAG_Techniques/ | A complete tutorial on RAG techniques. |
langgraph-bigtool/ | A library for creating LangGraph agents that can access a large number of tools. |
Controllable-RAG-Agent/ | A sophisticated RAG agent implementation with controllable parameters for Harry Potter knowledge base. |
business-intelligence-ai-SQL-dashboard/ | An AI-driven dashboard system that connects to SQL databases and creates visualizations without writing queries. |
langgraph/ with a low-level orchestration framework for building, managing, and deploying stateful agents.function_calling_MCP/ with a multi-agent system for stock insights.muti-agent_crewai/ with a multi-agent system for stock insights.RAG_Techniques/ with a complete tutorial on RAG techniques.business-intelligence-ai-SQL-dashboard/ with an AI-driven dashboard system for SQL databases.Controllable-RAG-Agent/ with a sophisticated RAG agent for Harry Potter knowledge base.langgraph-bigtool/ with a library for creating LangGraph agents that can access a large number of tools.context-Engineering/ with a complete tutorial on context engineering for AI agents.ai-agent-papers/ with a curated collection of research papers on AI Agents.Short-Long_term_memory_simulation/ with short and long term memory simulation, that uses LangGraph to simulate a conversation between human philosophers.Agentic_Stock_Insight/ with stock data analysis and news RAG workflows, notebook_demos/ with Streamlit + RAG examplesThis is the successor to my original Agentic AI teaching repo,
which once had over a thousand stars before it was accidentally deleted.
If you supported that work before โ thank you.
Iโm rebuilding it here, even better, and would love your support again โญ
Educators, engineers, learners โ all are welcome.
Feel free to explore, fork, submit PRs, or reach out to collaborate.
Letโs teach the future of Agentic AI โ together, one project at a time.
As AI agents become more sophisticated, managing their context efficiently has become crucial. Context engineering is the art and science of filling an LLM's context window with precisely the right information at each step of an agent's execution.
Think of LLMs as a new kind of operating system where:
As Andrej Karpathy describes it: Context engineering is the "delicate art and science of filling the context window with just the right information for the next step."
Long-running agent tasks often lead to:
Before diving into strategies, let's identify the main types of context in LLM applications:
Purpose: Save information outside the context window for future use.
Agents can take "notes" during task execution, similar to human problem-solving.
Implementation approaches:
Example use case: When Anthropic's multi-agent researcher exceeds 200,000 tokens, it saves its plan to memory to prevent truncation loss.
Persist information across multiple sessions for long-term learning.
Types of memories:
Real-world examples:
Purpose: Pull relevant information into the context window when needed.
Select memories relevant to current tasks:
Selection challenges:
Selection methods:
Use RAG on tool descriptions to avoid tool overload and confusion.
Benefits:
Purpose: Retain only essential tokens for task completion.
When to use:
Summarization strategies:
Example: Claude Code's auto-compact feature summarizes full interaction trajectories when approaching context limits.
Approaches:
Purpose: Split context across different spaces to manage complexity.
Distribute context across specialized sub-agents.
Benefits:
Challenges:
Use sandboxes to isolate token-heavy objects from the LLM.
Example: HuggingFace's CodeAgent runs tool calls in sandboxes, passing only selected results back to the LLM.
Advantages:
Use structured state objects with selective field exposure.
Implementation:
# Short-term memory (scratchpad)
class AgentState(TypedDict):
messages: List[BaseMessage]
scratchpad: Dict[str, Any]
# Long-term memory
memory = LangGraphMemory()
memory.save("user_preferences", user_data)
# Fine-grained state control
def agent_node(state: AgentState):
relevant_context = select_relevant_memories(state.current_task)
# Only include what's needed for this step
return {"context": relevant_context}
# Periodic summarization
def summarize_if_needed(state: AgentState):
if len(state.messages) > threshold:
summary = summarize_conversation(state.messages)
return {"messages": [summary] + state.messages[-5:]}
return state
# Multi-agent isolation
supervisor = SupervisorAgent()
research_agent = ResearchAgent()
writing_agent = WritingAgent()
# Each agent maintains separate context
Don't include everything "just in case" - be selective and purposeful.
Regularly refresh and validate context relevance.
Ensure context selection aligns with user goals and expectations.
Don't lose critical information in pursuit of token efficiency.
Maintain clear boundaries between different types of context.
Context engineering is becoming an essential skill for AI agent developers. The four pillars - Write, Select, Compress, and Isolate - provide a comprehensive framework for managing context effectively.
Remember: Context engineering is both an art and a science. Start with solid observability, experiment systematically, and always keep the end-user experience in mind.
For more advanced implementations and examples, explore LangGraph's documentation and consider the LangSmith platform for comprehensive agent observability and testing.
This tutorial was inspired by insights from Andrej Karpathy, Andrew Ng, and the LangChain team.
38 commits
Jupyter Notebook
86.0%
Python
13.3%
โก Production-grade Agentic AI tutorials - Build LangGraph+AutoGen+RAG+llamaindex+AutoGen... systems from scratch. Classic repo reborn with weekly updates. Support open education with your โญ! ๐
Jupyter Notebook
0
38 commits
updated Aug 9, 2025
Welcome to AgenticU โ a curated, multi-project teaching repository focused on building modern Agentic AI systems with LLMs.
This project is built from my teaching journeys across Everywhere: in classrooms, workshops, and corporate trainings.
Inside, youโll find hands-on tutorials, code examples, and full project demos built with the latest frameworks in the LLM agent ecosystem, including:
Each folder in this repository is a standalone project or tutorial, covering a specific agentic technique, workflow, or framework.
Some are full applications, others are Jupyter notebook experiments.
Theyโre all designed to help you learn by building.
Example folders might include:
agentic_u/
โโโ langgraph_agents/
โโโ autogen_planner/
โโโ rag_crag_search_demo/
โโโ openai_function_calling/
โโโ realtime_webrtc/
โโโ agentic_ui_streamlit/
โโโ notebook_demos/
โโโ Controllable-RAG-Agent/
โโโ business-intelligence-ai-SQL-dashboard/
โโโ ollama_pdf_rag/
โโโ mcp-sql-dashboard/
โโโ Langgraph_BuildingAmbientAgents/
โโโ ai-experiments/
โโโ Flowise/
โโโ Langgraph_BuildingAmbientAgents/
โโโ langgraph/
Looking for the full archive from my previous teaching repo?
Youโll find detailed update logs, course plans, and project notes in:
๐ README_old.md
This archive comes from my original repo โ
AgenticAI_LLMs_Amazing_courses_Langchain_LlamaIndex โ which once had over 29stars before deletion.
| Folder | Description |
|---|---|
langgraph/ | LangGraph is a low-level orchestration framework for building, managing, and deploying stateful agents. |
function_calling_MCP/ | A multi-agent system for stock insights, combining RAG workflows to extract insights from news and financial data. |
muti-agent_crewai/ | A multi-agent system for stock insights, combining RAG workflows to extract insights from news and financial data. |
langgraph_agents/ | Stateful agents with LangGraph |
autogen_planner/ | Multi-agent coordination using AutoGen |
Agentic_Stock_Insight/ | An application for stock data insights, combining RAG workflows to extract insights from news and financial data. |
Short-Long_term_memory_simulation/ | An application for simulating short and long term memory |
ai-agent-papers/ | A curated collection of research papers on AI Agents, covering capabilities, architectures, and real-world applications, updated biweekly. |
context-Engineering/ | A complete tutorial on context engineering for AI agents. |
RAG_Techniques/ | A complete tutorial on RAG techniques. |
langgraph-bigtool/ | A library for creating LangGraph agents that can access a large number of tools. |
Controllable-RAG-Agent/ | A sophisticated RAG agent implementation with controllable parameters for Harry Potter knowledge base. |
business-intelligence-ai-SQL-dashboard/ | An AI-driven dashboard system that connects to SQL databases and creates visualizations without writing queries. |
langgraph/ with a low-level orchestration framework for building, managing, and deploying stateful agents.function_calling_MCP/ with a multi-agent system for stock insights.muti-agent_crewai/ with a multi-agent system for stock insights.RAG_Techniques/ with a complete tutorial on RAG techniques.business-intelligence-ai-SQL-dashboard/ with an AI-driven dashboard system for SQL databases.Controllable-RAG-Agent/ with a sophisticated RAG agent for Harry Potter knowledge base.langgraph-bigtool/ with a library for creating LangGraph agents that can access a large number of tools.context-Engineering/ with a complete tutorial on context engineering for AI agents.ai-agent-papers/ with a curated collection of research papers on AI Agents.Short-Long_term_memory_simulation/ with short and long term memory simulation, that uses LangGraph to simulate a conversation between human philosophers.Agentic_Stock_Insight/ with stock data analysis and news RAG workflows, notebook_demos/ with Streamlit + RAG examplesThis is the successor to my original Agentic AI teaching repo,
which once had over a thousand stars before it was accidentally deleted.
If you supported that work before โ thank you.
Iโm rebuilding it here, even better, and would love your support again โญ
Educators, engineers, learners โ all are welcome.
Feel free to explore, fork, submit PRs, or reach out to collaborate.
Letโs teach the future of Agentic AI โ together, one project at a time.
As AI agents become more sophisticated, managing their context efficiently has become crucial. Context engineering is the art and science of filling an LLM's context window with precisely the right information at each step of an agent's execution.
Think of LLMs as a new kind of operating system where:
As Andrej Karpathy describes it: Context engineering is the "delicate art and science of filling the context window with just the right information for the next step."
Long-running agent tasks often lead to:
Before diving into strategies, let's identify the main types of context in LLM applications:
Purpose: Save information outside the context window for future use.
Agents can take "notes" during task execution, similar to human problem-solving.
Implementation approaches:
Example use case: When Anthropic's multi-agent researcher exceeds 200,000 tokens, it saves its plan to memory to prevent truncation loss.
Persist information across multiple sessions for long-term learning.
Types of memories:
Real-world examples:
Purpose: Pull relevant information into the context window when needed.
Select memories relevant to current tasks:
Selection challenges:
Selection methods:
Use RAG on tool descriptions to avoid tool overload and confusion.
Benefits:
Purpose: Retain only essential tokens for task completion.
When to use:
Summarization strategies:
Example: Claude Code's auto-compact feature summarizes full interaction trajectories when approaching context limits.
Approaches:
Purpose: Split context across different spaces to manage complexity.
Distribute context across specialized sub-agents.
Benefits:
Challenges:
Use sandboxes to isolate token-heavy objects from the LLM.
Example: HuggingFace's CodeAgent runs tool calls in sandboxes, passing only selected results back to the LLM.
Advantages:
Use structured state objects with selective field exposure.
Implementation:
# Short-term memory (scratchpad)
class AgentState(TypedDict):
messages: List[BaseMessage]
scratchpad: Dict[str, Any]
# Long-term memory
memory = LangGraphMemory()
memory.save("user_preferences", user_data)
# Fine-grained state control
def agent_node(state: AgentState):
relevant_context = select_relevant_memories(state.current_task)
# Only include what's needed for this step
return {"context": relevant_context}
# Periodic summarization
def summarize_if_needed(state: AgentState):
if len(state.messages) > threshold:
summary = summarize_conversation(state.messages)
return {"messages": [summary] + state.messages[-5:]}
return state
# Multi-agent isolation
supervisor = SupervisorAgent()
research_agent = ResearchAgent()
writing_agent = WritingAgent()
# Each agent maintains separate context
Don't include everything "just in case" - be selective and purposeful.
Regularly refresh and validate context relevance.
Ensure context selection aligns with user goals and expectations.
Don't lose critical information in pursuit of token efficiency.
Maintain clear boundaries between different types of context.
Context engineering is becoming an essential skill for AI agent developers. The four pillars - Write, Select, Compress, and Isolate - provide a comprehensive framework for managing context effectively.
Remember: Context engineering is both an art and a science. Start with solid observability, experiment systematically, and always keep the end-user experience in mind.
For more advanced implementations and examples, explore LangGraph's documentation and consider the LangSmith platform for comprehensive agent observability and testing.
This tutorial was inspired by insights from Andrej Karpathy, Andrew Ng, and the LangChain team.
38 commits
Jupyter Notebook
86.0%
Python
13.3%