{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Welcome to the Second Lab - Exercise: Advanced Agentic Design Patterns\n", "\n", "This notebook extends the previous lab by adding the **Reflection Pattern** to improve response quality.\n", "\n", "### Patterns used in the original lab:\n", "1. **Multi-Model Comparison Pattern** - Comparing multiple models\n", "2. **Judge/Evaluator Pattern** - Evaluation by a judge model\n", "\n", "### New pattern added:\n", "3. **Reflection Pattern** - Self-improvement of responses" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n",
" ![]() | \n",
" \n",
" New Pattern: Reflection\n", " The Reflection Pattern allows a model to critique and improve its own response. This is particularly useful for complex tasks requiring nuance and precision.\n", " | \n",
"
\n",
" ![]() | \n",
" \n",
" Pattern Analysis\n", " \n", " Patterns used:\n", " 1. Multi-Model Comparison: Comparing multiple models on the same task \n", " 2. Judge/Evaluator: Using a model to evaluate performances \n", " 3. Reflection (NEW): Self-critique and improvement of responses \n", " Possible experiments: \n", " - Iterate the Reflection Pattern multiple times \n", " - Add a \"Debate Pattern\" between models \n", " - Implement a \"Consensus Pattern\"\n", " \n", " | \n",
"
\n",
" ![]() | \n",
" \n",
" Commercial Applications\n", " \n", " The Reflection Pattern is particularly valuable for:\n", " • Improving quality of complex analyses \n", " • Reducing bias in AI recommendations \n", " • Creating self-improving systems \n", " • Developing more robust AI for critical decisions \n", " Use cases: Strategic consulting, risk analysis, ethical evaluation, medical diagnosis\n", " \n", " | \n",
"