Skip to content

sammydeprez/presentations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Development Presentations

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.

πŸ“š Presentations

This repository contains two comprehensive presentations with accompanying Jupyter notebooks:

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

⚠️ Contains explicit content for educational purposes

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

⚠️ Warning: This presentation contains provocative examples and explicit content designed to test safety features. All content is for educational purposes only.


πŸš€ Quick Start

Each presentation is self-contained with its own setup instructions. To get started:

  1. Choose a presentation based on your interest
  2. Navigate to the folder (agent-architectures/ or llm-safety-security/)
  3. Follow the README in that folder for detailed setup instructions
  4. Configure your environment using the provided .env-template
  5. Run the notebooks to explore the concepts

Common Prerequisites

Both presentations require:

  • Python 3.8 or higher
  • Azure OpenAI account
  • Basic understanding of Python and LLMs

Installation Pattern

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 notebook

πŸ“– Learning Path

For Beginners

Start with Agent Architectures to understand the fundamentals:

  1. Begin with notebook 1 (Simple LLM Call)
  2. Progress through each pattern sequentially
  3. Experiment with the examples
  4. Then move to LLM Safety & Security to learn about protecting your applications

For Experienced Developers

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

For Production Deployments

We recommend completing both presentations to understand:

  1. How to architect effective AI agents (Agent Architectures)
  2. How to secure and protect them (LLM Safety & Security)

🎯 What You'll Learn

From Agent Architectures

  • 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

From LLM Safety & Security

  • Protecting against prompt injection attacks
  • Implementing content moderation
  • Detecting harmful images and text
  • Preventing hallucinations with grounding
  • Avoiding copyright violations
  • Building responsible AI systems

πŸ› οΈ Technologies Used

Core Frameworks

  • LangChain - Framework for developing LLM applications
  • LangGraph - Building stateful, multi-actor applications
  • Azure OpenAI - Enterprise-grade LLM access
  • Azure Content Safety - Comprehensive safety services

Additional Tools

  • Tavily Search - Web search for AI agents
  • Ollama - Local LLM execution (optional)
  • Jupyter - Interactive notebooks
  • httpx - Modern HTTP client

πŸ“ Repository Structure

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

πŸ”‘ Required API Keys

For Agent Architectures

  • Azure OpenAI: Endpoint, API Key, and API Version
  • Tavily API: Key for web search (notebook 8 only)

For LLM Safety & Security

  • 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.

πŸ’‘ Best Practices

When working with these presentations:

  1. Start Simple: Don't skip the basics. Each concept builds on previous ones.
  2. Experiment: Modify the examples to understand how they work.
  3. Use Virtual Environments: Keep dependencies isolated per presentation.
  4. Protect Your Keys: Never commit .env files to version control.
  5. Monitor Costs: Azure OpenAI charges per token. Be mindful when experimenting.
  6. Review Documentation: Each README contains important setup and usage information.

🀝 Contributing

Contributions are welcome! If you find issues or have suggestions:

  1. Open an issue describing the problem or enhancement
  2. Submit a pull request with your changes
  3. Ensure your code follows the existing style
  4. Update documentation as needed

πŸ“„ License

This repository uses a dual license structure:

πŸ“Š Presentation Slides

Creative Commons BY-NC-ND 4.0

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

πŸ’» Code & Notebooks

MIT License

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:

For permissions beyond the license scope, please open an issue.

πŸ™ Acknowledgments

These presentations are built with:

πŸ“š Additional Resources

Learning Resources

Community

Responsible AI


Happy Learning! πŸŽ‰

These presentations are designed for educational purposes to help developers build intelligent and responsible AI applications.