Skip to content

Latest commit

Β 

History

180 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI & Python Workshop Tutorial

A comprehensive, hands-on workshop for learning Python programming and AI development from basics to production-ready applications.

Workshop Overview

This tutorial takes you on a journey from Python fundamentals to building sophisticated AI chatbots with web interfaces. Each module builds upon the previous one, ensuring a solid foundation while progressing toward real-world applications.

Learning Path

Foundation Level | Time: 2-3 hours

Master the fundamental building blocks of Python programming:

  • Conditional statements and decision making
  • Loops and iteration patterns
  • Command-line interfaces and user interaction
  • Input validation and error handling

Skills Gained: Basic programming logic, control flow, user interaction

Beginner Level | Time: 2-3 hours

Understand Python's type system and modern programming practices:

  • Python data types with type hints
  • Variable naming conventions and best practices
  • String formatting and f-strings
  • Type safety and validation

Skills Gained: Data management, type-safe programming, modern Python syntax

Intermediate Level | Time: 3-4 hours

Learn code organization and reusable programming patterns:

  • Function design with type annotations
  • Module creation and import systems
  • Error handling and exception management
  • Documentation and testing patterns

Skills Gained: Code organization, modularity, professional development practices

Advanced Level | Time: 4-5 hours

Build AI-powered applications through structured progression:

  • 01-simple-api-calls: Direct AI model integration
  • 02-basic-classes: Object-oriented chatbot design
  • 03-advanced-chatbot: Production-ready patterns

Skills Gained: AI integration, object-oriented programming, production patterns

Expert Level | Time: 3-4 hours

Create production-ready web applications:

  • Modern web interfaces with Streamlit
  • Real-time streaming responses
  • Session management and deployment
  • Professional UI/UX design

Skills Gained: Web development, deployment, production-ready applications

Prerequisites

  • Python 3.8+ installed on your system
  • Basic familiarity with command line/terminal
  • Text editor or IDE (VS Code recommended)
  • Enthusiasm for learning! πŸš€

Quick Start

  1. Clone or download this repository
  2. Navigate to the workshop directory:
    cd gen_ai_tutorial
  3. Start with module 00:
    cd 00-python-basics
    python conditional_statements.py

Workshop Structure

Each module contains:

  • Comprehensive README: Learning objectives and concepts
  • Commented Code Examples: Real-world, practical examples
  • Progressive Complexity: Building from simple to sophisticated
  • Hands-on Exercises: Practical challenges to reinforce learning
  • Best Practices: Industry-standard patterns and conventions

Key Technologies Covered

Core Python

  • Language Fundamentals: Variables, functions, classes
  • Modern Features: Type hints, f-strings, dataclasses
  • Best Practices: PEP 8, documentation, testing

AI Integration

  • LiteLLM: Unified interface for multiple AI providers
  • Google Gemini: Fast, capable AI models
  • OpenAI GPT: Industry-standard models
  • Local Models: Ollama for privacy and control

Web Development

  • Streamlit: Rapid web app development
  • Session Management: Persistent application state
  • Real-time Features: Streaming and dynamic updates
  • Deployment: Production-ready applications

Data Management

  • Pydantic: Type-safe data validation
  • Environment Variables: Secure configuration
  • JSON Handling: Data serialization and storage
  • Error Handling: Robust error management

Learning Outcomes

By completing this workshop, you'll be able to:

  1. Write Clean Python Code: Following modern best practices and conventions
  2. Build AI Applications: Integrate various AI models into your applications
  3. Create Web Interfaces: Develop professional web applications
  4. Handle Production Concerns: Manage errors, security, and deployment
  5. Design Scalable Architecture: Structure code for maintainability and growth

Workshop Philosophy

🎯 Practical Learning

Every concept is demonstrated with real, working code that solves actual problems.

πŸ“ˆ Progressive Complexity

Start simple and build complexity gradually, ensuring solid understanding at each step.

πŸ—οΈ Production Ready

Learn patterns and practices used in real-world professional development.

πŸ”„ Iterative Improvement

Each module builds on the previous, showing evolution from basic to sophisticated.

🀝 Best Practices

Emphasize code quality, documentation, testing, and professional development standards.

Module Dependencies

00-python-basics
    ↓
01-data-types-variables
    ↓  
02-functions-modules
    ↓
03-basic-chatbot
    ↓
04-streamlit-chatbot

Time Investment

Module Estimated Time Complexity
00 - Python Basics 2-3 hours ⭐⭐
01 - Data Types & Variables 2-3 hours ⭐⭐⭐
02 - Functions & Modules 3-4 hours ⭐⭐⭐⭐
03 - Basic Chatbot 4-5 hours ⭐⭐⭐⭐⭐
04 - Streamlit Chatbot 3-4 hours ⭐⭐⭐⭐
Total 14-19 hours -

Getting Help

Resources

  • Each module has detailed README files with explanations
  • Code examples include comprehensive comments
  • Common troubleshooting sections in each module

Best Practices for Learning

  1. Follow the sequence - each module builds on the previous
  2. Run all examples - hands-on practice is essential
  3. Experiment freely - modify code to see what happens
  4. Read the comments - they explain the "why" behind the code
  5. Take breaks - complex concepts need time to solidify

Workshop Extensions

After completing the main workshop, consider these advanced topics:

Backend Development

  • FastAPI: Building REST APIs
  • Database Integration: SQL and NoSQL databases
  • Authentication: User management and security

Frontend Development

  • React/Vue.js: Modern JavaScript frameworks
  • WebSockets: Real-time communication
  • PWAs: Progressive web applications

DevOps & Deployment

  • Docker: Containerization
  • CI/CD: Automated testing and deployment
  • Cloud Platforms: AWS, Google Cloud, Azure

Advanced AI

  • Custom Models: Fine-tuning and training
  • Vector Databases: Semantic search and RAG
  • AI Agents: Multi-step reasoning systems

Contributing

This workshop is designed to be a living resource. Contributions are welcome:

  • Bug fixes in code examples
  • Clarifications in documentation
  • Additional examples that reinforce concepts
  • Extension ideas for advanced learners

License

This workshop is open source and available for educational use. Feel free to adapt it for your learning needs or teaching contexts.

Acknowledgments

This workshop combines best practices from the Python community, AI development patterns, and modern web development approaches. Special thanks to the open source community for the excellent tools and libraries that make this learning experience possible.


Ready to start your AI development journey?

Begin with 00 - Python Basics and work your way through each module. Take your time, experiment with the code, and most importantly - have fun building! πŸš€

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages