How microsoft/langchain-for-beginners works
This repository is a hands-on LangChain course, not a single application. Its principal learner journey moves from model interactions and prompts through tools and agents, then document retrieval and agentic RAG, ending with a Microsoft Foundry hosted-agent example. The README documents that progression and the major capabilities; sampled code confirms examples such as tool-using agents, vector-store search, conversational RAG, and hosting. Many chapter examples were not sampled, so chapter-level nodes represent documented capabilities without asserting unverified internal calls.
Main entry points: 06-mcp MCP Integration · 07-documents-embeddings-semantic-search Document Processing · 02_agentic_rag.py Agentic RAG · 04-function-calling-tools Function Tools
Components 21
Model Foundations
- LangChain Basics
01-introduction - Chat Models
02-chat-models
Prompts and Tools
- Prompts and Outputs
03-prompts-messages-outputs - Function Tools
04-function-calling-tools - Travel Assistant
04-function-calling-tools/solution/travel_assistant.py
Agents and MCP
- Agent Patterns
05-agents - Research Agent
05-agents/solution/research_agent.py - MCP Integration
06-mcp - Context7 Example
06-mcp/solution/context7_basic.py - MCP Error Handling
06-mcp/code/04_mcp_error_handling.py
Search and RAG
- Document Processing
07-documents-embeddings-semantic-search - Embedding Concepts
07-documents-embeddings-semantic-search/code/09_embedding_relationships.py - Semantic Book Search
07-documents-embeddings-semantic-search/solution/book_search.py - RAG Decisions
08-agentic-rag-systems/code/01_when_to_use_rag.py - Traditional RAG
08-agentic-rag-systems/code/01a_traditional_rag.py - Agentic RAG
08-agentic-rag-systems/code/02_agentic_rag.py - Knowledge Base Q&A
08-agentic-rag-systems/solution/knowledge_base_rag.py - Conversational RAG
08-agentic-rag-systems/solution/conversational_rag.py
Hosted Deployment
- Foundry Hosted Agent
09-deploy-to-microsoft-foundry/code/main.py
Other components
- Learner
- Microsoft Foundry
Connections 20
- Learner → LangChain Basics: starts with
README.md - LangChain Basics → Chat Models: continues to
README.md - Chat Models → Prompts and Outputs: continues to
README.md - Prompts and Outputs → Function Tools: continues to
README.md - Function Tools → Agent Patterns: precedes
README.md - Function Tools → Travel Assistant: includes solution
README.md - Agent Patterns → Research Agent: includes solution
README.md - Agent Patterns → MCP Integration: continues to
README.md - MCP Integration → Context7 Example: includes solution
06-mcp/solution/context7_basic.py - MCP Integration → MCP Error Handling: covers errors
README.md - MCP Integration → Document Processing: precedes
README.md - Document Processing → Embedding Concepts: explores
README.md - Document Processing → Semantic Book Search: includes solution
07-documents-embeddings-semantic-search/solution/book_search.py - Document Processing → RAG Decisions: supports retrieval
README.md - RAG Decisions → Traditional RAG: compares with
08-agentic-rag-systems/code/01a_traditional_rag.py - RAG Decisions → Agentic RAG: introduces
README.md - Agentic RAG → Knowledge Base Q&A: includes solution
README.md - Agentic RAG → Conversational RAG: extends to conversation
08-agentic-rag-systems/solution/conversational_rag.py - Agentic RAG → Foundry Hosted Agent: precedes deployment
README.md - Foundry Hosted Agent → Microsoft Foundry: hosts agent on
09-deploy-to-microsoft-foundry/code/main.py