Skip to content

senthil1216/agentic_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agentic AI: Prompt Engineering & LLM Reasoning

This repository contains comprehensive learning materials on prompt engineering techniques and agentic AI workflows. It includes hands-on lessons covering role-based prompting, prompt refinement, chaining prompts for agentic reasoning, implementing LLM feedback loops, and building complete agentic workflow systems with various design patterns.

πŸ“‹ Table of Contents

🎯 Repository Overview

This repository is organized into two main learning tracks:

  1. Effective Prompting for LLM Reasoning - Foundational prompt engineering techniques including role-based prompting, prompt refinement, prompt chaining, and feedback loops
  2. Agentic Workflows - Advanced agentic AI patterns including routing, parallelization, evaluator-optimizer patterns, and orchestrator-worker architectures

πŸ”§ Prerequisites

Python Version

  • Python 3.8+ (Python 3.9 or higher recommended)
  • The notebooks have been tested with Python 3.9+ and should work with Python 3.8+

Required Python Packages

Install all required packages using pip from the requirements file:

pip install -r requirements.txt

Core Dependencies:

  • openai==2.8.1 - For accessing OpenAI API (or Vocareum API endpoint)
  • python-dotenv==1.2.1 - For loading environment variables from .env files
  • pydantic>=2.11.0 - For structured data validation (used in prompt chaining lesson)
  • pandas>=2.3.0 - For data analysis and visualization (used in prompt chaining lesson)
  • numpy>=2.0.0 - Numerical computing library (dependency for pandas)
  • json-repair>=0.47.1 - For fixing malformed JSON outputs from LLMs
  • numexpr>=2.11.0 - For fast numerical expression evaluation

Jupyter Environment:

  • jupyter>=1.0.0 - Core Jupyter functionality
  • notebook>=7.0.0 - Jupyter Notebook interface
  • jupyterlab>=4.0.0 - JupyterLab interface
  • ipykernel>=6.25.0 - IPython kernel for Jupyter
  • ipython>=8.12.0 - Enhanced interactive Python shell

Standard Library (included with Python):

  • enum - Enumeration support
  • json - JSON parsing and generation
  • os - Operating system interface
  • typing - Type hints support
  • traceback - Stack trace formatting (used in feedback loops lesson)
  • io - StringIO for output capture (used in feedback loops lesson)
  • contextlib - Context managers for output redirection (used in feedback loops lesson)

πŸš€ Running the Materials

The repository contains both Jupyter notebooks (.ipynb) and Python scripts (.py).

For Jupyter Notebooks

Note: If you've installed packages from requirements.txt, Jupyter Notebook and JupyterLab are already installed.

Option 1: Using Jupyter Notebook

  1. Start Jupyter Notebook:

    jupyter notebook
  2. Navigate to the lesson folder and open the desired .ipynb file

Option 2: Using JupyterLab

  1. Start JupyterLab:

    jupyter lab
  2. Open the notebook from the file browser

Option 3: Using VS Code

  1. Install the Jupyter extension in VS Code
  2. Open the notebook file directly in VS Code
  3. Select a Python kernel when prompted

For Python Scripts

Navigate to the lesson's demo or exercise folder and run the Python files directly:

python demo.py
# or
python starter.py

API Configuration

Before running the notebooks, you'll need to configure your API credentials:

  • Vocareum API: The notebooks are pre-configured to use the Vocareum API endpoint. Update the API key in each notebook where needed.
  • OpenAI API: To use OpenAI's API instead, uncomment the OpenAI client initialization and set your API key as an environment variable:
    export OPENAI_API_KEY="your-api-key-here"

πŸ“š Course 1: Effective Prompting for LLM Reasoning

Location: effective-prompting-llm-reasoning/

This course provides foundational knowledge on prompt engineering techniques for building intelligent LLM applications.


Introduction to Prompting for LLM Reasoning and Planning

Location: effective-prompting-llm-reasoning/introduction-to-prompting-for-llm-reasoning-and-planning/

Files:

  • introduction-to-prompting-for-llm-reasoning-and-planning.ipynb - Pre-lesson exercise on workspace organization
  • model-selection.ipynb - Model selection and comparison exercises

Description:

This folder contains introductory exercises that demonstrate fundamental prompt engineering concepts. You'll learn to:

  • Start with generic prompts and gradually refine them
  • Add professional roles to enhance AI responses
  • Introduce concrete constraints (time, budget, etc.) to guide AI behavior
  • Compare different approaches to prompt engineering

Key Concepts:

  • Prompt refinement techniques
  • Role-based prompting basics
  • Adding constraints and context
  • Comparing prompt strategies

Lesson 1: Role-Based Prompting (Agent Personas)

Location: effective-prompting-llm-reasoning/role-based-prompting/

File:

  • lesson-1-role-based-prompting.ipynb

Description:

In this lesson, you'll learn to create convincing AI personas by crafting prompts that instruct an LLM to adopt the persona of a historical figure (e.g., Albert Einstein) during interactive Q&A sessions.

Topics Covered:

  1. Plain Prompt - Baseline without role definition
  2. Baseline Historical Figure Prompt - Basic role-playing prompt
  3. Persona-Specific Attributes - Adding personality traits, speech style, expertise, and historical context
  4. Tone and Style Specifications - Defining conversational tone and linguistic style
  5. Q&A Session Format - Testing persona consistency with specific questions
  6. Reflection & Transfer - Evaluating realism and authenticity of AI responses

Learning Outcomes:

  • Understand how role-based prompting affects AI behavior
  • Learn to create detailed persona specifications
  • Master techniques for maintaining persona consistency
  • Evaluate the effectiveness of different prompt refinements

Lesson 3: Prompt Instruction Refinement

Location: effective-prompting-llm-reasoning/prompt-refinement/

File:

  • lesson-3-prompt-instruction-refinement.ipynb

Description:

This lesson teaches you to systematically refine prompts through iterative improvements. You'll work on a practical task: matching recipes to dietary restrictions, learning how to analyze prompt components and improve them.

Topics Covered:

  1. Setup - Library imports and helper functions
  2. Sample Recipes and Dietary Restrictions - Working with real-world data
  3. Initial Prompt and Evaluation - Starting with a basic prompt
  4. Prompt Component Analysis - Identifying areas for improvement
    • Role definition
    • Task specification
    • Output format
    • Context and examples
  5. Prompt Refinement Iterations - Multiple iterations to improve the prompt
    • Adding role and context
    • Clarifying task requirements
    • Improving output format with explanations
    • Adding examples and handling ambiguities
  6. Testing with Another Recipe - Validating improvements
  7. Comparison - Comparing initial vs. refined prompts

Key Concepts:

  • Prompt component analysis
  • Iterative prompt refinement
  • Context and example integration
  • Handling ambiguous cases
  • Structured output formats (JSON)

Learning Outcomes:

  • Learn systematic approaches to prompt refinement
  • Understand the importance of context and examples
  • Master techniques for handling edge cases and ambiguities
  • Improve prompt transparency and output quality

Lesson 4: Chaining Prompts for Agentic Reasoning

Location: effective-prompting-llm-reasoning/prompt-chaining/

File:

  • lesson-4-chaining-prompts-for-agentic-reasoning.ipynb

Description:

This advanced lesson demonstrates how to chain multiple prompts together to create a complex agentic reasoning system. You'll build an automated insurance claim triage system that processes free-form First Notice of Loss (FNOL) reports through multiple stages with validation gates.

Topics Covered:

  1. Setup - Import libraries and define helper functions
  2. Sample FNOL Texts - Example insurance claim reports
  3. Stage I: Information Extraction - Extract structured information from free-form text
    • Pydantic models for data validation
    • Gate checks for data quality
  4. Stage II: Severity Assessment - Assess damage severity and estimate costs
    • Severity classification (Minor, Moderate, Major)
    • Cost estimation within heuristic ranges
    • Validation gates for cost ranges
  5. Stage III: Queue Routing - Route claims to appropriate processing queues
    • Routing rules based on severity and damage area
    • Queue types: glass, fast_track, material_damage, total_loss
  6. Review Outputs - Analyze results using pandas DataFrames

Key Concepts:

  • Prompt chaining patterns
  • Code-based gate checks
  • Structured data validation with Pydantic
  • Multi-stage agentic reasoning
  • Error handling and validation
  • Data pipeline construction

Technologies Used:

  • Pydantic for data validation
  • Pandas for data analysis
  • JSON for structured output
  • Enum for type safety

Learning Outcomes:

  • Understand how to chain prompts for complex workflows
  • Learn to implement validation gates to prevent error cascades
  • Master structured data extraction and validation
  • Build production-ready prompt chains with error handling
  • Create maintainable agentic reasoning systems

Lesson 5: Implementing LLM Feedback Loops

Location: effective-prompting-llm-reasoning/llm-feedback-loops/

File:

  • lesson-5-implementing-llm-feedback-loops.ipynb

Description:

This lesson teaches you to implement iterative feedback loops where an LLM generates, tests, and automatically revises Python code based on test results. You'll build a code generation and debugging assistant that uses test-driven development principles to iteratively improve code quality.

Topics Covered:

  1. Setup - Import libraries and define helper functions for code execution and testing
    • Code execution environment with error handling
    • Test runner with formatted feedback generation
  2. Define Task and Test Cases - Create requirements and test cases for a Python function
  3. Initial Generation - Generate initial code from requirements
  4. Expand the Test Cases - Add more comprehensive test cases (handling edge cases, new features)
  5. First Iteration with Feedback - Feed test results back to the LLM for improvement
    • Formatting test feedback for the LLM
    • Constructing feedback prompts
  6. Create Feedback Loop - Build an automated loop that iteratively improves code
    • Maximum iteration limits
    • Early termination when all tests pass
    • Tracking iteration history
  7. Reflection & Transfer - Evaluate the feedback loop approach

Key Concepts:

  • Iterative LLM feedback loops
  • Test-driven development with LLMs
  • Automated code generation and debugging
  • Code execution and validation
  • Feedback formatting for LLMs
  • Iteration management and termination conditions

Technologies Used:

  • Code execution with exec() and namespace management
  • Error handling with traceback
  • Output capture with io.StringIO and contextlib
  • Test case validation and reporting

Learning Outcomes:

  • Understand how to create automated feedback loops for LLM code generation
  • Learn to integrate test-driven development principles with LLM assistance
  • Master techniques for formatting test results as actionable feedback
  • Build automated systems that can self-correct and improve
  • Create production-ready code generation assistants with validation
  • Implement iteration strategies and termination conditions

AgentsVille Trip Planner Project

Location: effective-prompting-llm-reasoning/agentsville-trip-planner/

Files:

  • project_starter.ipynb - Complete trip planning application
  • project_lib.py - Utility functions and helper classes
  • README.md - Comprehensive project documentation
  • intelligent-content-curator-exercise.md - Additional advanced exercise

Description:

A sophisticated, multi-stage AI assistant that demonstrates advanced LLM reasoning techniques. Build a trip planner that generates personalized itineraries using Chain-of-Thought reasoning and refines them using the ReAct (Reasoning + Acting) pattern with tool integration.

Topics Covered:

  1. Expert Planner (ItineraryAgent) - Chain-of-Thought reasoning for initial itinerary generation
  2. Resourceful Assistant (ItineraryRevisionAgent) - ReAct pattern for iterative refinement
  3. Tool Integration - Calculator, activity lookup, evaluation runner, and final answer tools
  4. Comprehensive Evaluation - 7 evaluation functions ensuring quality and compliance
  5. Structured Data Models - Pydantic models for travelers, activities, weather, and itineraries

Key Features:

  • Weather-aware activity planning
  • Interest-based recommendation system
  • Budget compliance validation
  • Multi-stage AI orchestration
  • Tool-calling agents with ReAct patterns
  • Structured JSON output with validation

Learning Outcomes:

  • Design multi-stage AI systems
  • Master ReAct pattern implementation
  • Build tool-using agents
  • Implement evaluation pipelines
  • Create production-ready AI applications

Technologies Used:

  • OpenAI API
  • Pydantic for data validation
  • json-repair for JSON fixing
  • numexpr for calculations
  • pandas for data display

Bonus Exercise: The intelligent-content-curator-exercise.md file provides an advanced follow-up project building an AI-powered content curation system with multi-agent orchestration, research coordination, and quality assessment.


Additional Exercises

Location: effective-prompting-llm-reasoning/ADDITIONAL_EXERCISES.md

This document contains 20+ additional exercises across 8 categories that combine prompt chaining, prompt refinement, and LLM feedback loops:

  1. Customer Support & Ticketing - Multi-stage ticket processing, FAQ generation
  2. Content Moderation & Review - Multi-layer moderation, review quality assessment
  3. Code Review & Documentation - Automated code review, API documentation generation
  4. Data Processing & Analysis - Data cleaning pipelines, ETL with error recovery
  5. E-commerce & Recommendations - Product recommendations, description generation
  6. Educational & Assessment - Essay grading, adaptive quiz generation
  7. Healthcare & Triage - Symptom triage, medication adherence
  8. Legal & Compliance - Contract analysis, privacy policy compliance

Each exercise includes:

  • Applied concepts and descriptions
  • Learning goals and technical challenges
  • Example inputs and expected outputs
  • Implementation tips and best practices

πŸ“š Course 2: Agentic Workflows

Location: agentic_workflows/

This course covers advanced agentic AI workflow patterns and architectures for building production-ready AI systems.


Lesson 1: Introduction to Agentic Workflows

Location: agentic_workflows/lesson-1-Introduction_to_Agentic_Workflows/

Structure:

  • demo/demo.py - Demonstration code
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Introduction to the fundamentals of agentic workflows, understanding what makes a system "agentic," and the core components of autonomous AI agents.

Key Concepts:

  • What are agentic workflows?
  • Components of autonomous agents
  • Agent decision-making and planning
  • Basic workflow patterns

Lesson 2: Understanding Agentic Workflows

Location: agentic_workflows/lesson-2-Understanding_Agentic_Workflows/

Structure:

  • demo/demo-no-llm.py - Non-LLM workflow demonstration
  • demo/demo-llm.py - LLM-based workflow demonstration
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Deep dive into understanding how agentic workflows operate, comparing traditional programmatic workflows with LLM-powered agentic systems.

Key Concepts:

  • Programmatic vs. agentic workflows
  • LLM integration in workflows
  • Decision-making mechanisms
  • State management in agents

Lesson 3: Agentic Workflow Modeling

Location: agentic_workflows/lesson-3-Agentic_Workflow_Modeling/

Description:

Learn to model and design agentic workflows, including defining agent capabilities, goals, and constraints.

Key Concepts:

  • Workflow modeling techniques
  • Agent capability definition
  • Goal and constraint specification
  • Workflow visualization and planning

Lesson 4: Agentic Workflow Implementation

Location: agentic_workflows/lesson-4-Agentic_Workflow_Implementation/

Structure:

  • demo/demo.py - Implementation demonstration

Description:

Hands-on implementation of agentic workflows, translating designs into working code with proper error handling and state management.

Key Concepts:

  • Implementation best practices
  • Error handling in agents
  • State persistence
  • Testing agentic systems

Lesson 5: Agentic Workflow Patterns - Prompt Chaining

Location: agentic_workflows/lesson-5-Agentic_Workflow_Patterns_Prompt_Chaining/

Description:

Advanced prompt chaining patterns for building complex multi-step reasoning systems where outputs from one prompt feed into subsequent prompts.

Key Concepts:

  • Sequential prompt chaining
  • Context preservation across chains
  • Error propagation and handling
  • Chain optimization techniques

Lesson 6: Agentic Workflow Patterns - Routing

Location: agentic_workflows/lesson-6-Agentic_Workflow_Patterns_Routing/

Structure:

  • demo/demo.py - Routing pattern demonstration
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Implement intelligent routing patterns where agents dynamically decide which path or specialized agent to route tasks to based on input analysis.

Key Concepts:

  • Dynamic routing logic
  • Specialized agent selection
  • Routing decision criteria
  • Fallback mechanisms

Lesson 7: Agentic Workflow Patterns - Parallelization

Location: agentic_workflows/lesson-7-Agentic_Workflow_Patterns_Parallelization/

Structure:

  • demo/demo.py - Parallelization demonstration
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Learn to parallelize agentic workflows for improved performance, executing independent tasks concurrently and aggregating results.

Key Concepts:

  • Parallel task execution
  • Result aggregation patterns
  • Dependency management
  • Performance optimization

Lesson 8: Agentic Workflow Patterns - Evaluator-Optimizer

Location: agentic_workflows/lesson-8-Agentic_Workflow_Patterns_Evaluator-Optimizer/

Structure:

  • demo/demo.py - Evaluator-optimizer demonstration
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Implement the evaluator-optimizer pattern where one agent generates solutions while another evaluates and provides feedback for iterative improvement.

Key Concepts:

  • Evaluation criteria design
  • Feedback loop implementation
  • Iterative optimization
  • Convergence strategies

Lesson 9: Agentic Workflow Patterns - Orchestrator-Workers

Location: agentic_workflows/lesson-9-Agentic_Workflow_Orchestrator-Workers/

Structure:

  • demo/demo_orchestrator.py - Orchestrator pattern demonstration
  • exercises/starter/starter.py - Exercise starter code
  • exercises/solution/solution.py - Solution code

Description:

Build orchestrator-worker architectures where a central orchestrator agent coordinates multiple specialized worker agents to accomplish complex tasks.

Key Concepts:

  • Orchestrator design patterns
  • Worker specialization
  • Task distribution strategies
  • Result coordination

Lesson 10: Course Overview

Location: agentic_workflows/lesson-10-Lesson_Overview/

Description:

Comprehensive review of all agentic workflow patterns and how to combine them for building sophisticated AI systems.


Agentic Workflows Project

Location: agentic_workflows/project/

Description:

Capstone project applying all learned patterns to build a complete production-ready agentic AI system.


πŸ“ Project Structure

agentic_ai/
β”‚
β”œβ”€β”€ README.md
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”‚
β”œβ”€β”€ effective-prompting-llm-reasoning/          # Course 1: Foundational Prompt Engineering
β”‚   β”‚
β”‚   β”œβ”€β”€ introduction-to-prompting-for-llm-reasoning-and-planning/
β”‚   β”‚   β”œβ”€β”€ introduction-to-prompting-for-llm-reasoning-and-planning.ipynb
β”‚   β”‚   β”œβ”€β”€ model-selection.ipynb
β”‚   β”‚   └── requirements.txt
β”‚   β”‚
β”‚   β”œβ”€β”€ role-based-prompting/
β”‚   β”‚   └── lesson-1-role-based-prompting.ipynb
β”‚   β”‚
β”‚   β”œβ”€β”€ prompt-refinement/
β”‚   β”‚   └── lesson-3-prompt-instruction-refinement.ipynb
β”‚   β”‚
β”‚   β”œβ”€β”€ prompt-chaining/
β”‚   β”‚   └── lesson-4-chaining-prompts-for-agentic-reasoning.ipynb
β”‚   β”‚
β”‚   β”œβ”€β”€ llm-feedback-loops/
β”‚   β”‚   └── lesson-5-implementing-llm-feedback-loops.ipynb
β”‚   β”‚
β”‚   β”œβ”€β”€ agentsville-trip-planner/               # Capstone Project
β”‚   β”‚   β”œβ”€β”€ project_starter.ipynb
β”‚   β”‚   β”œβ”€β”€ project_lib.py
β”‚   β”‚   β”œβ”€β”€ README.md
β”‚   β”‚   └── intelligent-content-curator-exercise.md
β”‚   β”‚
β”‚   └── ADDITIONAL_EXERCISES.md                 # 20+ practice exercises
β”‚
└── agentic_workflows/                          # Course 2: Advanced Agentic Patterns
    β”‚
    β”œβ”€β”€ README.md
    β”‚
    β”œβ”€β”€ lesson-1-Introduction_to_Agentic_Workflows/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   └── demo.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-2-Understanding_Agentic_Workflows/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   β”œβ”€β”€ demo-no-llm.py
    β”‚   β”‚   └── demo-llm.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-3-Agentic_Workflow_Modeling/
    β”‚   └── exercises/
    β”‚
    β”œβ”€β”€ lesson-4-Agentic_Workflow_Implementation/
    β”‚   └── demo/
    β”‚       └── demo.py
    β”‚
    β”œβ”€β”€ lesson-5-Agentic_Workflow_Patterns_Prompt_Chaining/
    β”‚   └── exercises/
    β”‚
    β”œβ”€β”€ lesson-6-Agentic_Workflow_Patterns_Routing/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   └── demo.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-7-Agentic_Workflow_Patterns_Parallelization/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   └── demo.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-8-Agentic_Workflow_Patterns_Evaluator-Optimizer/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   └── demo.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-9-Agentic_Workflow_Orchestrator-Workers/
    β”‚   β”œβ”€β”€ demo/
    β”‚   β”‚   └── demo_orchestrator.py
    β”‚   └── exercises/
    β”‚       β”œβ”€β”€ starter/starter.py
    β”‚       └── solution/solution.py
    β”‚
    β”œβ”€β”€ lesson-10-Lesson_Overview/
    β”‚
    └── project/                                 # Capstone Project

πŸ”‘ Key Features

Course 1: Effective Prompting

  • Hands-on Learning: Jupyter notebooks with practical exercises and real-world applications
  • Progressive Difficulty: Lessons build from basic prompting to advanced multi-stage systems
  • Complete Examples: Runnable code examples with detailed explanations
  • Capstone Project: AgentsVille Trip Planner demonstrating ReAct patterns and tool integration
  • 20+ Additional Exercises: Practice across 8 domains (healthcare, legal, e-commerce, etc.)
  • Validation & Testing: Gate checks and evaluation functions for production systems

Course 2: Agentic Workflows

  • Pattern-Based Learning: Master 5 core agentic workflow patterns
  • Python Implementation: Executable Python scripts with starter and solution code
  • Demo Code: Working demonstrations of each pattern
  • Production Patterns: Learn industry-standard architectures (orchestrator-workers, evaluator-optimizer)
  • Scalable Design: Techniques for building robust, production-ready AI systems
  • Hands-on Exercises: Practice implementing each pattern independently

πŸ’‘ Tips for Success

For Course 1: Effective Prompting

  1. Work Sequentially: Start with the introduction, then progress through lessons 1, 3, 4, and 5
  2. Experiment Actively: Modify prompts and observe how outputs change
  3. Complete the Project: The AgentsVille Trip Planner synthesizes all learned concepts
  4. Explore Exercises: Try additional exercises in domains relevant to your interests
  5. Pay Attention to Validation: Errors teach important concepts about structured outputs
  6. Observe Feedback Loops: Watch how iterative improvements work in Lesson 5

For Course 2: Agentic Workflows

  1. Start with Demos: Run demo code to understand each pattern before implementing
  2. Complete Starter Exercises: Work through starter.py files before viewing solutions
  3. Compare Approaches: Review demo-no-llm.py vs demo-llm.py in Lesson 2
  4. Master One Pattern at a Time: Ensure understanding before moving to the next pattern
  5. Build Incrementally: Start simple, then add complexity as you gain confidence
  6. Apply to Projects: Think about how to apply patterns to your own use cases

General Best Practices

  1. Configure API Keys: Set up your OpenAI or Vocareum API access before starting
  2. Take Notes: Document what works and what doesn't for future reference
  3. Test Thoroughly: Include edge cases and error scenarios in your experiments
  4. Read Documentation: Each project has detailed README files - use them
  5. Join the Community: Share your implementations and learn from others

πŸ“ Notes

  • API Compatibility: All materials work with both Vocareum API endpoints and OpenAI's API
  • Internet Required: Stable internet connection needed for API calls
  • API Credits: Some lessons may consume API credits depending on your provider
  • Course Organization: Two independent courses that can be taken separately or sequentially
  • File Types: Course 1 uses Jupyter notebooks (.ipynb), Course 2 uses Python scripts (.py)
  • Prerequisites: Basic Python knowledge recommended; no prior AI/ML experience required

πŸŽ“ Learning Paths

Path 1: Fundamentals First

  1. Complete Course 1 (Effective Prompting) lessons sequentially
  2. Build the AgentsVille Trip Planner project
  3. Move to Course 2 (Agentic Workflows) for advanced patterns
  4. Complete the Agentic Workflows capstone project

Path 2: Pattern-Focused

  1. Review Course 1 Introduction and Lesson 1
  2. Jump to Course 2 to learn workflow patterns
  3. Return to Course 1 for deeper prompt engineering techniques
  4. Complete both capstone projects

Path 3: Project-Based

  1. Start with AgentsVille Trip Planner (Course 1)
  2. Learn relevant lessons as needed for the project
  3. Build the Agentic Workflows capstone project (Course 2)
  4. Practice with additional exercises from Course 1

🌟 What You'll Build

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

  • Design and implement sophisticated prompt engineering strategies
  • Build multi-stage AI systems with proper validation and error handling
  • Create tool-using agents with ReAct patterns
  • Implement all major agentic workflow patterns (routing, parallelization, evaluator-optimizer, orchestrator-workers)
  • Develop production-ready AI applications with proper evaluation pipelines
  • Apply AI techniques across diverse domains (travel, healthcare, e-commerce, legal, etc.)

🀝 Contributing

This is an educational repository. Feel free to:

  • Experiment with the code and modify it for your learning
  • Create your own variations of exercises
  • Share your implementations and insights
  • Report issues or suggest improvements

πŸ“„ License

This repository is for educational purposes.


πŸš€ Ready to Start?

  1. Clone this repository
  2. Set up your Python environment and install dependencies
  3. Configure your API keys
  4. Choose your learning path
  5. Start with Course 1's introduction or Course 2's Lesson 1

Happy Learning! πŸš€βœ¨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors