Welcome to this collection of technical presentations on AI agent development and LLM safety. These materials provide hands-on demonstrations and practical examples for building intelligent, safe, and responsible AI applications using LangChain, LangGraph, and Azure AI services.
This repository contains two comprehensive presentations with accompanying Jupyter notebooks:
π€ Agent Architectures
Explore different AI agent patterns from simple to sophisticated.
Learn how to build intelligent agents using LangChain and LangGraph, progressing from basic LLM calls to complex multi-agent systems. This presentation covers 8 different architectural patterns including:
- Simple LLM calls and tool usage
- ReAct agents for autonomous tool execution
- Routing patterns for specialized agents
- Reflection for self-improvement
- Parallel execution strategies
- Supervisor and Swarm architectures
- Planning agents with task decomposition
π View Full Documentation β
Technologies: LangChain, LangGraph, Azure OpenAI, Tavily Search
π‘οΈ LLM Safety & Security
Master the critical aspects of LLM safety using Azure Content Safety services. This presentation demonstrates comprehensive techniques for protecting AI applications from various security risks and harmful content.
Topics covered include:
- Prompt injection detection and prevention
- Content filtering across multiple categories (Hate, Violence, Sexual, SelfHarm)
- Custom blocklists and pattern matching
- Image content analysis
- Hallucination detection (Groundedness)
- Copyright and protected material detection
π View Full Documentation β
Technologies: Azure Content Safety, Azure OpenAI, LangChain, Ollama
Each presentation is self-contained with its own setup instructions. To get started:
- Choose a presentation based on your interest
- Navigate to the folder (
agent-architectures/orllm-safety-security/) - Follow the README in that folder for detailed setup instructions
- Configure your environment using the provided
.env-template - Run the notebooks to explore the concepts
Both presentations require:
- Python 3.8 or higher
- Azure OpenAI account
- Basic understanding of Python and LLMs
Each presentation follows this pattern:
# Navigate to the presentation folder
cd agent-architectures # or llm-safety-security
# Create virtual environment
python -m venv venv
source venv/bin/activate # macOS/Linux
# or venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env-template .env
# Edit .env with your API keys
# Launch Jupyter
jupyter notebookStart with Agent Architectures to understand the fundamentals:
- Begin with notebook 1 (Simple LLM Call)
- Progress through each pattern sequentially
- Experiment with the examples
- Then move to LLM Safety & Security to learn about protecting your applications
You can explore either presentation based on your needs:
- Agent Architectures: If you want to build sophisticated multi-agent systems
- LLM Safety & Security: If you need to implement content moderation and safety features
We recommend completing both presentations to understand:
- How to architect effective AI agents (Agent Architectures)
- How to secure and protect them (LLM Safety & Security)
- Foundation of agent-based systems
- When to use different architectural patterns
- How to implement tool-calling agents
- Building multi-agent collaborative systems
- Task planning and decomposition strategies
- Protecting against prompt injection attacks
- Implementing content moderation
- Detecting harmful images and text
- Preventing hallucinations with grounding
- Avoiding copyright violations
- Building responsible AI systems
- LangChain - Framework for developing LLM applications
- LangGraph - Building stateful, multi-actor applications
- Azure OpenAI - Enterprise-grade LLM access
- Azure Content Safety - Comprehensive safety services
- Tavily Search - Web search for AI agents
- Ollama - Local LLM execution (optional)
- Jupyter - Interactive notebooks
- httpx - Modern HTTP client
presentations/
βββ README.md # This file
βββ agent-architectures/ # Agent patterns presentation
β βββ README.md # Detailed documentation
β βββ .env-template # Environment configuration template
β βββ requirements.txt # Python dependencies
β βββ Agent Architect.key # Keynote presentation
β βββ 1_llm_call.ipynb # Simple LLM call
β βββ 2_1_tool_call.ipynb # Manual tool calling
β βββ 2_2_react_agent.ipynb # ReAct agent pattern
β βββ 3_routing.ipynb # Routing pattern
β βββ 4_reflection.ipynb # Reflection pattern
β βββ 5_parallelism.ipynb # Parallel execution
β βββ 6_supervisor.ipynb # Supervisor pattern
β βββ 7_swarm.ipynb # Swarm pattern
β βββ 8_planner.ipynb # Planning agent
β βββ docs/ # Supporting images
β
βββ llm-safety-security/ # Safety & security presentation
βββ README.md # Detailed documentation
βββ .env-template # Environment configuration template
βββ requirements.txt # Python dependencies
βββ LLM Safety.key # Keynote presentation
βββ content-safety.ipynb # Comprehensive safety demo
- Azure OpenAI: Endpoint, API Key, and API Version
- Tavily API: Key for web search (notebook 8 only)
- Azure OpenAI: Endpoint, API Key, and API Version
- Azure Content Safety: Endpoint and Subscription Key
See individual presentation READMEs for detailed instructions on obtaining these keys.
When working with these presentations:
- Start Simple: Don't skip the basics. Each concept builds on previous ones.
- Experiment: Modify the examples to understand how they work.
- Use Virtual Environments: Keep dependencies isolated per presentation.
- Protect Your Keys: Never commit
.envfiles to version control. - Monitor Costs: Azure OpenAI charges per token. Be mindful when experimenting.
- Review Documentation: Each README contains important setup and usage information.
Contributions are welcome! If you find issues or have suggestions:
- Open an issue describing the problem or enhancement
- Submit a pull request with your changes
- Ensure your code follows the existing style
- Update documentation as needed
This repository uses a dual license structure:
The presentation materials (.key, .pdf, .pptx files and slide diagrams) are licensed under CC BY-NC-ND 4.0:
- β Share with attribution
- β No commercial use
- β No derivatives/modifications
- β Cannot be reused without proper attribution to Sammy Deprez
All code, Jupyter notebooks, Python files, and configuration files are licensed under the MIT License:
- β Free to use, modify, and distribute
- β Commercial use allowed
- β Must include copyright notice
Β© 2025 Sammy Deprez
When referencing these presentations, please cite:
- Author: Sammy Deprez
- Repository: https://github.com/sammydeprez/presentations
- Year: 2025
For permissions beyond the license scope, please open an issue.
These presentations are built with:
- LangChain - LLM application framework
- LangGraph - Agent orchestration
- Azure AI Services - Enterprise AI capabilities
- Tavily - AI-optimized search
- LangChain Documentation
- LangGraph Documentation
- Azure OpenAI Documentation
- Azure Content Safety Documentation
Happy Learning! π
These presentations are designed for educational purposes to help developers build intelligent and responsible AI applications.