Super Data Science: ML & AI Podcast with Jon Krohn
Super Data Science: ML & AI Podcast with Jon Krohn

959: Building Agents 101: Design Patterns, Evals and Optimization (with Sinan Ozdemir)

AI entrepreneur and bestselling author Sinan Ozdemir speaks to Jon Krohn about the practical differences between agentic AI and AI workflows, why evaluating accuracy on its own won’t tell you enough about AI models, and more about his latest book Building Agentic AI. This episode is brought to you b

Featured Speakers

Jon Krohn HostSinan Ozdemir Guest

Topics Discussed

Episode Summary

Executive Summary: John Crohn interviews Sinan Ozdemir about his book "Building Agentic AI," focusing on practical distinctions between workflows and agents, model families, parameter sizing, evaluation, reasoning, context windows, and production trade-offs. The conversation emphasizes that most real-world AI systems are hybrids, and that task, risk, and cost should drive model and architecture choices.

Main Topics: Workflows vs. agents: Ozdemir defines agents as LLMs with tool access that choose their own actions, while workflows are deterministic code paths where the model’s behavior is forced. He stresses that most production systems are hybrids. Model families and model selection: He contrasts autoregressive models (generation/chat) with autoencoding models (encoding/classification), arguing that use case and task type matter more than chasing the newest model. Parameter count as a sizing heuristic: Ozdemir offers a rough framework: under 10B parameters for lightweight/local use, 10B-100B for more capable multi-turn tasks, and 100B+ for broad enterprise/multilingual needs. Evaluation metrics and task-specific benchmarking: The episode highlights why accuracy is insufficient and why different tasks require different metrics such as precision, recall, MRR, and reproducible experiments. Context window and long-horizon reasoning: They discuss how longer context windows help agents, but also how models may still fail to attend to information placed inside them, making true usable context more important than nominal capacity. Reasoning models and their limits: Ozdemir presents surprising benchmark results showing that more reasoning time does not reliably improve performance and can substantially raise cost. Fine-tuning, quantization, distillation, and optimization: The discussion closes with deployment trade-offs: making models cheaper, smaller, or faster often reduces fidelity, so practitioners must weigh cost, speed, privacy, and performance.

Key Arguments: Most production AI systems are workflows or hybrids rather than pure agents; the presence or absence of agency is determined by whether the model chooses its own tool/actions. The best way to decide between a workflow and an agent is to document the current process and count conditionals/branching rules. Autoregressive models are best understood as generative writers; autoencoding models are better suited to embeddings, classification, and other understanding tasks. Parameter count is only a rough heuristic: smaller models can work well for constrained retrieval tasks, while larger models are needed for broad generalization and enterprise deployment. Evaluation must be task-specific; precision matters when false positives are costly, while recall matters when false negatives are costly. Reasoning models do not guarantee better results; they can improve performance in some cases, but gains may be marginal relative to their cost. Context window size alone is not enough; the model must actually be able to retrieve and reason over the information placed in context. Quantization, distillation, and LoRA are useful for deployment efficiency, but they typically create output differences and quality loss compared with the original model.

Data Points: Podcast episode number: 959 - Super Data Science Podcast episode number referenced by the host. Number of books by Sinan Ozdemir: 10th book - Ozdemir says "Building Agentic AI" is his 10th book. Amazon AI category ranking: Top 10 - The book is ranked in the top 10 of Amazon's AI category at recording time. Amazon rating: 4.7 stars - The host notes the book has a 4.7-star rating after several dozen reviews. Parameter range for "small" models: Under 10 billion parameters - Ozdemir describes models in this range as feasible to run on a CPU, especially in quantized form. Parameter range for "medium" models: 10 to 100 billion parameters - He associates this range with stronger multi-turn and task-specific agentic behavior. Parameter range for "large" models: 100 billion+ parameters - He says these are typically needed for enterprise-wide multilingual and complex deployments. Reasoning benchmark experiment duration: 5 hours - Ozdemir says a reasoning-model benchmark evaluation took five hours. Reasoning benchmark call count: 180 LLM calls - The five-hour evaluation consisted of 180 model calls. Reasoning benchmark gain example: 1-2% accuracy increase - He says reasoning sometimes yields only a 1-2% improvement. Reasoning benchmark cost increase example: 2x cost - He notes that the small accuracy gains can come with roughly double the cost. Tool-use failure rate example: 5% of the time - A GPT-4.1 case study is cited where the model ignored instructions to always look up an article before answering about Airbnb policies about 5% of the time.

Pivotal Quotes: "An agent, quite simply, is an LLM, a large language model, with access to tools." — Sinan Ozdemir: He defines the core difference between an agent and a plain language model. "A workflow is very much a deterministic data and code path." — Sinan Ozdemir: He explains how workflows differ from agents by removing model autonomy. "Precision is the measurement of all the times the model said yes, how often can you trust it?" — Sinan Ozdemir: He clarifies why precision matters when false positives are expensive.

Implications: Builders should treat agentic AI as an engineering trade-off problem, not a model-chasing problem: choose architecture, metrics, and model size based on task risk, cost, and reliability. The field is moving fast, but disciplined evaluation and hybrid design will matter most.

🔓 Sign Up for Unlimited Episode Search

About Super Data Science: ML & AI Podcast with Jon Krohn

View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn