<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Packt Hub - Medium]]></title>
        <description><![CDATA[Insight and analysis on how the software landscape is changing. And how it’s changing the world. - Medium]]></description>
        <link>https://medium.com/packt-hub?source=rss----9c47f8def1a1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Packt Hub - Medium</title>
            <link>https://medium.com/packt-hub?source=rss----9c47f8def1a1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 05:26:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/packt-hub" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Architecture of Trust: Why Reliable AI Requires More Than Intelligent Models]]></title>
            <link>https://medium.com/packt-hub/the-architecture-of-trust-why-reliable-ai-requires-more-than-intelligent-models-e82af6702ccc?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/e82af6702ccc</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 11:23:06 GMT</pubDate>
            <atom:updated>2026-11-13T11:23:05.909Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>RESEARCH PERSPECTIVES | AI SYSTEMS ENGINEERING &amp; TRUST</strong></h4><h4><em>An exploration of the engineering principles behind trustworthy generative AI, from evidence-grounded evaluation and organizational constraints to the emerging possibilities of quantum machine learning.</em></h4><h3>The AI Industry Has a Trust Problem That Better Models Alone Cannot Solve</h3><p>Something unusual is happening in artificial intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UUPAtBxFfWih7sSO0grZfw.png" /></figure><p>We have reached a point where developers can build an AI assistant in an afternoon, connect it to enterprise documents, give it access to tools, and deploy it behind a polished interface.</p><p>The assistant can summarize contracts, analyze financial reports, generate code, retrieve information, and even execute multi-step workflows.</p><p>On paper, the system looks impressive.</p><p>Then someone asks a question it cannot answer confidently.</p><p>The assistant produces a convincing explanation, cites the wrong document, or confidently fills a gap with information that was never there.</p><p>Suddenly, the conversation changes.</p><p>The question is no longer whether the AI system is capable.</p><p><strong>The question becomes whether anyone should trust it.</strong></p><p>This distinction is becoming one of the most important challenges in production AI engineering.</p><p>Organizations are investing in increasingly capable language models, sophisticated retrieval systems, and autonomous agents. Yet many still struggle with the same fundamental problems: inconsistent answers, unverifiable reasoning, poorly defined expectations, and systems that perform brilliantly in demonstrations but unpredictably in real environments.</p><p>What if the biggest obstacle to reliable AI is not the intelligence of the model but the architecture surrounding it?</p><p>And what if solving that problem requires rethinking not only how we build AI systems but also how humans interact with them?</p><p>These questions sit at the center of a conversation between <strong>Sanjana Gupta, Relationship Lead at Packt, and </strong><a href="https://www.linkedin.com/in/daniel-buchta-4355b1b6/"><strong>Daniel Buchta, CEO of Avenue78</strong></a>, a mathematician and technology architect with more than 25 years of experience building complex IT systems.</p><p>Drawing on his background in mathematics, generative AI, enterprise architecture, and quantum computing, Daniel offers a perspective that challenges several assumptions about where AI engineering is heading.</p><p>His central argument is straightforward:</p><p><strong>The future of AI will not be determined by what systems can generate. It will be determined by what people can reliably trust them to do.</strong></p><h3>1. The Architecture of AI Has Changed, but Our Engineering Assumptions Haven’t</h3><p>To understand why trust has become such a significant problem, we first need to understand how AI has changed the relationship between software and its users.</p><p>Traditional software systems were built around explicit instructions.</p><p>A developer defined the logic, a database stored structured information, and an application executed predetermined operations.</p><p>If a user clicked a button, the system followed a known sequence.</p><p>If a query ran against a database, the expected output was generally deterministic for a given state of the data.</p><p>This made software behavior relatively straightforward to test.</p><p>Generative AI introduces a fundamentally different interaction model.</p><p>Instead of describing every operation through code, users can express their intentions through natural language.</p><p>The system interprets meaning, draws on context, and generates a response.</p><p>Daniel explains this shift through three characteristics that he believes make modern AI particularly aligned with human interaction.</p><h3>Perception: AI systems increasingly operate through iterative feedback</h3><p>Many modern AI workflows are built around a repeated cycle.</p><p>The system receives information, interprets the current situation, performs an action, and uses the resulting feedback to determine what happens next.</p><p>This is particularly visible in agentic systems.</p><p>An AI agent might retrieve a document, examine its contents, identify missing information, call another tool, and revise its response.</p><p>The workflow is no longer simply input followed by output.</p><p>It becomes an iterative process.</p><p>However, this does not mean every generative model continuously learns from its interactions. In many deployed systems, the model’s parameters remain fixed while the surrounding application manages state, memory, and feedback.</p><p>That distinction matters because reliability depends on understanding which parts of the system can actually adapt.</p><h3>Semantics: Meaning has become part of the programming interface</h3><p>Previously, interacting with complex software required understanding its functions, interfaces, or query languages.</p><p>Now, natural language can act as an interface to computation.</p><p>A user can request:</p><p>“Compare the last three quarterly reports, identify changes in operating expenses, and explain the largest discrepancies.”</p><p>A sufficiently equipped AI system can interpret that request, retrieve relevant information, and coordinate multiple operations.</p><p>But semantic flexibility introduces ambiguity.</p><p>What counts as a discrepancy?</p><p>Which reports should be treated as authoritative?</p><p>Should the system compare absolute values or percentage changes?</p><p>What happens if the documents disagree?</p><p>These are not merely language-model questions.</p><p>They are architecture questions.</p><h3>Attention: Systems can prioritize relevant information</h3><p>Transformer-based models use attention mechanisms to represent relationships between tokens and contextual information.</p><p>This has contributed significantly to the capabilities of modern language models.</p><p>But from an engineering perspective, relevance remains a difficult problem.</p><p>A model may process a large amount of context without correctly prioritizing the information necessary to answer a specific question.</p><p>That is why context selection, retrieval quality, and information organization remain critical even as context windows expand.</p><p>Daniel connects these ideas to a principle that has influenced his approach to architecture throughout his career: the <strong>Anna Karenina principle</strong>.</p><p>Inspired by Tolstoy’s famous observation about happy and unhappy families, the principle suggests that successful systems depend on several necessary conditions being satisfied together.</p><p>A failure in any important condition can undermine the entire system.</p><p>For AI engineering, the implication is significant.</p><p>A highly capable model cannot compensate indefinitely for poor data, inadequate evaluation, unclear requirements, or missing organizational knowledge.</p><p><strong>A reliable AI product must be aligned with its purpose at every layer, not merely at the model layer.</strong></p><h3>2. The Missing Layer in Enterprise AI: An Architecture of Trust</h3><p>During the conversation, Sanjana asks Daniel to describe a real project, from the initial business problem to its implementation.</p><p>Rather than beginning with a model, framework, or infrastructure decision, Daniel starts with a more fundamental question.</p><p>What would make generative AI genuinely useful and acceptable to people?</p><p>His answer is trust.</p><p>He draws a comparison with technologies that became essential because people developed confidence in using them.</p><p>Banking systems made it possible to manage money digitally.</p><p>Search engines became a trusted starting point for finding information.</p><p>Generative AI is entering a more sensitive territory.</p><p>People are increasingly using it to interpret information, support decisions, and participate in their thinking processes.</p><p>That creates a different kind of responsibility.</p><p>When an AI system helps summarize an article, a small error may be inconvenient.</p><p>When it influences a financial assessment, clinical workflow, or business decision, the consequences can be much more serious.</p><p>Daniel describes an ongoing project at Avenue78 built around a reusable trust-oriented architectural core.</p><p>At the time of the interview, the team was developing three initial applications:</p><p><strong>Privacy:</strong> An application intended to address privacy concerns when interacting with public-facing technology.</p><p><strong>Shield:</strong> A component focused on protecting structured environments and information.</p><p><strong>Studio:</strong> An environment intended to support the creation of AI assistants.</p><p>Daniel did not disclose the underlying proprietary architecture or provide independent performance results. The important insight from the conversation is therefore the design philosophy rather than a verified implementation benchmark.</p><p>Instead of treating trust as a feature added after development, the team is attempting to make it a foundational architectural concern.</p><p>This raises an important question for enterprise AI teams.</p><h3>What would a trust-first AI architecture actually require?</h3><p>Consider an enterprise knowledge assistant.</p><p>A conventional implementation might connect a language model to a vector database, retrieve relevant documents, and generate responses.</p><p>A trust-first implementation needs to ask additional questions.</p><p>Can the system identify where every important factual claim originated?</p><p>Can it distinguish retrieved evidence from generated interpretation?</p><p>Does it respect the user’s access permissions?</p><p>Can it recognize when the available information is insufficient?</p><p>Can a user challenge an answer and inspect the evidence?</p><p>Can the organization investigate what happened when a response is wrong?</p><p>These requirements suggest that trust is not one technical component.</p><p>It is an architectural property emerging from several controls working together.</p><p>A practical trust-oriented architecture might include:</p><ul><li><strong>Identity and authorization:</strong> Determine which users and agents can access particular resources.</li><li><strong>Context management:</strong> Supply relevant, current, and appropriately scoped information.</li><li><strong>Evidence and provenance:</strong> Preserve links between generated claims and their supporting sources.</li><li><strong>Evaluation:</strong> Test whether the system meets defined accuracy, reliability, and usefulness criteria.</li><li><strong>Observability:</strong> Record retrieval behavior, tool calls, failures, and relevant execution traces.</li><li><strong>Human oversight:</strong> Introduce review or approval when actions carry meaningful risk.</li><li><strong>Failure handling:</strong> Allow the system to express uncertainty, abstain, retry safely, or escalate.</li></ul><p>These are practical engineering implications of Daniel’s trust-first argument, rather than a disclosed blueprint of Avenue78’s product.</p><p>The distinction matters.</p><p>A system can have excellent retrieval performance and still expose confidential information.</p><p>It can produce accurate answers and still execute an unauthorized action.</p><p>It can cite genuine documents and still misinterpret their contents.</p><p><strong>Trust is not simply the absence of hallucinations. It is the ability to understand, constrain, and verify the behavior of the entire AI system.</strong></p><h3>3. Why AI Architecture Is Becoming Easier to Build but Harder to Get Right</h3><p>One of Daniel’s more provocative observations is that generative AI is making certain aspects of system architecture simpler.</p><p>That might sound surprising.</p><p>After all, modern AI systems can involve embeddings, vector databases, orchestration frameworks, tool integrations, monitoring pipelines, evaluation systems, and multiple models.</p><p>How can architecture be getting simpler?</p><p>Daniel’s argument is that many implementation patterns are becoming increasingly accessible and reusable.</p><p>Developers no longer need to invent every component from scratch.</p><p>Retrieval-augmented generation, agent orchestration, and automated data-processing workflows have established implementation patterns.</p><p>But as the mechanics of building become easier, the difficulty moves elsewhere.</p><p>It moves toward defining the problem, supplying meaningful context, managing expectations, and deciding what successful behavior looks like.</p><p>Consider two teams building an AI assistant for financial research.</p><p>The first team begins by choosing a model, selecting a vector database, and designing a multi-agent workflow.</p><p>The second begins by asking:</p><p>What decisions will the assistant support?</p><p>Which information sources are acceptable?</p><p>How recent must the information be?</p><p>What happens when sources disagree?</p><p>Which errors are tolerable?</p><p>What evidence must accompany each conclusion?</p><p>Both teams may eventually use similar technical components.</p><p>But the second team has a clearer basis for determining whether its system works.</p><p>This is the distinction between <strong>building an AI application and engineering a reliable AI product</strong>.</p><p>Daniel emphasizes the importance of context and metadata.</p><p>A language model may be capable of interpreting a financial document, but it still needs to know whether the document is current, which organization it belongs to, what period it covers, and whether the user is authorized to access it.</p><p>Without that information, even a sophisticated model may produce a plausible but inappropriate response.</p><p>The lesson for AI architects is that automation does not eliminate the need for architecture.</p><p>It changes where architectural judgment is most valuable.</p><p>The challenge increasingly becomes designing the conditions under which AI-generated behavior can be trusted.</p><h3>4. The Most Dangerous AI Failure May Be an Answer Nobody Can Verify</h3><p>When Sanjana turns the conversation toward production evaluation, Daniel identifies a problem that many AI teams encounter after deployment.</p><p>Traditional systems are often evaluated against expected outputs.</p><p>A calculation should return a particular value.</p><p>A database query should retrieve a defined set of records.</p><p>An API should produce a response that conforms to its contract.</p><p>Generative AI complicates this approach because the same request can produce different wording across multiple executions.</p><p>Two answers can be semantically equivalent without being textually identical.</p><p>Conversely, two answers can sound equally convincing while only one is factually correct.</p><p>This makes simple string matching inadequate for many generative AI applications.</p><p>Daniel argues that one of the first questions evaluators should ask is:</p><p><strong>Where did the information come from?</strong></p><p>For a document-grounded assistant, that means the ability to trace claims back to their evidence.</p><p>Not merely identifying the document that was retrieved, but locating the relevant passage.</p><p>For example, imagine an AI assistant answering:</p><p>“The company’s operating expenses increased by 18% in the second quarter.”</p><p>A useful evaluation process should establish whether the cited source actually supports that figure.</p><p>It should determine whether the calculation is correct, whether the comparison period is appropriate, and whether any relevant qualifications were omitted.</p><p>A citation that merely points to the company’s annual report is not sufficient evidence.</p><p>The citation must support the specific claim.</p><h3>Why citations are necessary but not sufficient</h3><p>Daniel places considerable emphasis on source attribution as the starting point for evaluating hallucinations.</p><p>This is especially valuable in retrieval-based systems.</p><p>However, hallucinations are not limited to missing citations, and the presence of a citation does not establish correctness.</p><p>An AI system can misread a valid source.</p><p>It can combine facts from unrelated passages.</p><p>It can draw an unsupported conclusion from accurate information.</p><p>It can also generate an incorrect answer even when the necessary context is available.</p><p>A more complete evaluation strategy therefore needs to examine several dimensions.</p><p><strong>Groundedness:</strong> Is the response supported by the available evidence?</p><p><strong>Factual correctness:</strong> Are the claims accurate?</p><p><strong>Retrieval quality:</strong> Did the system retrieve the information required to answer the question?</p><p><strong>Task completion:</strong> Did the response actually solve the user’s problem?</p><p><strong>Safety and authorization:</strong> Did the system remain within its permitted boundaries?</p><p><strong>Consistency:</strong> Does performance remain acceptable across different prompts, inputs, and repeated runs?</p><p>For production teams, this suggests a practical evaluation workflow.</p><p>Start with representative tasks collected from actual users.</p><p>Define expected behavior and acceptable failure conditions.</p><p>Create reference answers or evaluation criteria where possible.</p><p>Test retrieval and generation separately.</p><p>Inspect unsupported claims.</p><p>Then repeat the tests as models, prompts, documents, and tools change.</p><p>The most important part is that evaluation must reflect what users consider successful.</p><p>Daniel repeatedly returns to the importance of defining expectations with customers and end users.</p><p>Without agreement on what a good answer looks like, a team can spend months optimizing metrics that do not correspond to real-world value.</p><p><strong>The goal of evaluation is not to prove that an AI model can answer questions. It is to establish when its answers are dependable enough to use.</strong></p><h3>5. The Hidden Trade-Off: Would You Rather Have One Perfect Task or 100 Good-Enough Ones?</h3><p>At this point, the conversation moves away from infrastructure and toward something less frequently discussed in technical architecture reviews.</p><p>Human expectations.</p><p>Daniel describes a recurring pattern he has observed when organizations adopt generative AI.</p><p>At first, people become excited by its possibilities.</p><p>They imagine AI automating entire workflows, replacing repetitive tasks, and dramatically increasing productivity.</p><p>Then they begin testing it against their own work.</p><p>The model makes mistakes.</p><p>It overlooks context.</p><p>It fails to reproduce exactly how an experienced professional would approach a problem.</p><p>Enthusiasm turns into disappointment.</p><p>Daniel describes this progression using the familiar imagery associated with the Dunning–Kruger effect: an early peak of confidence followed by a period of disillusionment.</p><p>His analogy is not a formal psychological model of AI adoption, but it captures a recognizable organizational challenge.</p><p>Teams often move from expecting AI to do everything to dismissing it because it cannot do everything perfectly.</p><p>The difficult work begins between those extremes.</p><p>Daniel frames the trade-off through a deliberately provocative comparison.</p><p>Would you prefer to complete one task perfectly yourself, or allow AI to complete 100 tasks at an acceptable level of quality?</p><p>The numbers are illustrative, not a measured productivity result.</p><p>The question exposes an important tension.</p><p>People are accustomed to evaluating their own work against standards they understand.</p><p>When AI performs the same task differently, they may interpret that difference as failure.</p><p>But the appropriate standard depends on the consequences of the task.</p><p>For a low-risk activity such as drafting alternative headlines, generating many usable options may be more valuable than producing one meticulously crafted response.</p><p>For a medical decision, financial authorization, or security-sensitive action, an approximate answer may be entirely unacceptable.</p><p>This is why AI adoption requires more than persuading employees to accept imperfect outputs.</p><p>It requires organizations to classify tasks according to risk.</p><p>Some tasks can tolerate variation.</p><p>Some require review.</p><p>Others require deterministic controls or should remain outside the system’s authority.</p><p>The real trade-off is not simply perfection versus productivity.</p><p>It is <strong>how much autonomy a system should receive given the cost of being wrong</strong>.</p><p>For AI product leaders, this is a crucial design decision.</p><p>The right answer may be full automation for one workflow, human approval for another, and no AI involvement for a third.</p><h3>6. The Production Failure That Changed Daniel’s Approach to Engineering</h3><p>One of the most revealing moments in the interview arrives when Sanjana asks Daniel about a project that did not go according to plan.</p><p>Instead of offering a polished success story, he describes a major failure from earlier in his career.</p><p>Around two decades ago, Daniel was leading the architecture of a large IT system in Slovakia.</p><p>The team was preparing a significant upgrade.</p><p>He had confidence in the architecture, the implementation, and his own experience.</p><p>But during the transition, critical assumptions about compatibility between the old and new versions proved incorrect.</p><p>Production systems began failing.</p><p>The upgrade created serious operational problems.</p><p>Looking back, Daniel identifies two interconnected causes.</p><p>He underestimated testing.</p><p>And he allowed his confidence in his own expertise to prevent him from questioning important assumptions.</p><p>The technical failure was significant.</p><p>But the professional lesson was even more enduring.</p><p>Experience does not remove uncertainty.</p><p>In fact, confidence accumulated through previous successes can sometimes make uncertainty harder to recognize.</p><p>Daniel also recalls a later machine learning project in which he attempted to handle too much of the work himself.</p><p>He took responsibility for the mathematics, modeling, and broader implementation.</p><p>Because he appeared capable of managing everything, the organization did not provide the team support the project required.</p><p>Eventually, the workload became unsustainable.</p><p>His conclusion was that individual expertise cannot replace the combined capabilities of a properly structured team.</p><p>These experiences are particularly relevant to modern AI engineering.</p><p>A single developer can now assemble an impressive AI prototype using APIs, frameworks, and existing models.</p><p>But a production system may require data engineering, security, infrastructure, evaluation, domain expertise, governance, and operational support.</p><p>The ability to build a prototype alone does not mean one person can safely own the entire lifecycle.</p><h3>What these failures teach AI teams</h3><p>The first lesson is to test assumptions, not just functionality.</p><p>A system may pass ordinary tests while failing during migration, under unexpected inputs, or when interacting with dependencies that behave differently from what the team anticipated.</p><p>The second is to design for failure before deployment.</p><p>What happens when a model produces an unsupported answer?</p><p>What happens when a tool call fails?</p><p>What happens when a retrieval system returns outdated information?</p><p>What happens when a new model version changes behavior?</p><p>The third is to make uncertainty visible.</p><p>Teams should be able to question architectural decisions without those questions being interpreted as a challenge to individual competence.</p><p>And the fourth is to recognize that production reliability is a team responsibility.</p><p><strong>The most dangerous assumption in engineering is not that something might fail. It is believing that experience has made failure unlikely enough to ignore.</strong></p><h3>7. The Constraint Most AI Teams Underestimate Isn’t Technical</h3><p>Latency matters.</p><p>Infrastructure costs matter.</p><p>Scalability, throughput, data quality, and model performance all matter.</p><p>But Daniel argues that some of the most consequential constraints in generative AI projects are organizational.</p><p>Specifically, they involve knowledge that never reaches the engineering team.</p><p>Imagine building an AI assistant for a customer support organization.</p><p>The engineering team has access to documentation, historical tickets, and internal knowledge articles.</p><p>It builds a retrieval system and evaluates responses against the available material.</p><p>Initial results look promising.</p><p>But experienced support agents know something the documentation does not capture.</p><p>Certain customer complaints require escalation regardless of what the knowledge base recommends.</p><p>Some policies have exceptions.</p><p>Some troubleshooting steps are technically correct but inappropriate for particular customer situations.</p><p>If those unwritten rules never enter the system’s design, the AI assistant will not reliably follow them.</p><p>The problem is not necessarily a weak model.</p><p>It is missing organizational context.</p><p>Daniel describes an earlier project in which his team was instructed not to communicate directly with end users and customers.</p><p>Without that access, the team could not adequately understand the real requirements or the constraints shaping the users’ work.</p><p>He considers that separation a decisive reason the project failed.</p><p>This leads to one of the strongest lessons from the conversation.</p><p><strong>You cannot engineer a trustworthy AI system around a workflow you do not fully understand.</strong></p><p>For AI teams, user involvement should therefore extend beyond initial requirements gathering.</p><p>Domain experts need to participate in defining evaluation criteria, reviewing outputs, identifying edge cases, and refining workflows.</p><p>They also need to understand what the AI system can and cannot do.</p><p>Otherwise, the engineering team may optimize for technical success while the users experience operational failure.</p><h3>Start with the problem traditional software cannot solve well</h3><p>Daniel offers another principle from his most successful projects.</p><p>Find the one important problem that the existing approach cannot adequately solve.</p><p>Then build around that.</p><p>This is a useful corrective to the tendency to introduce AI simply because the technology is available.</p><p>A deterministic rules engine may be better for applying a small set of clearly defined business policies.</p><p>A conventional database query may be better for retrieving an exact value.</p><p>A standard workflow automation tool may be more reliable for executing a predictable sequence.</p><p>But an AI system may offer meaningful value when the task requires interpreting diverse unstructured information, navigating ambiguous language, or synthesizing evidence across many sources.</p><p>For example, extracting relevant obligations from thousands of contracts with inconsistent formats may be difficult to achieve through rigid rules alone.</p><p>A language-model-based workflow could help interpret and organize that information, provided its outputs are verified against the source documents.</p><p>The important question is not whether AI can perform a task.</p><p>It is whether AI provides a meaningful advantage that justifies its additional uncertainty, cost, and governance requirements.</p><p>When that value is clear, organizations have a stronger reason to share knowledge, contribute resources, and participate in making the system successful.</p><h3>8. Beyond Classical AI: Could Quantum Machine Learning Change the Equation?</h3><p>Toward the end of the conversation, Sanjana introduces a different dimension of Daniel’s work: quantum computing and quantum machine learning.</p><p>The transition may initially seem unexpected.</p><p>After discussing trust, evaluation, and organizational constraints, why move toward quantum computing?</p><p>For Daniel, the connection lies in three limitations he believes will influence the future of AI.</p><p><strong>Resources. Privacy. Comprehension.</strong></p><p>These represent different challenges, and quantum technologies may eventually contribute to addressing some of them.</p><p>However, it is important to distinguish promising research directions from capabilities demonstrated in practical AI systems.</p><h3>Resources: Can quantum computing reduce computational bottlenecks?</h3><p>Modern AI systems can require substantial computational resources.</p><p>Training large models demands significant processing capacity, memory, and energy.</p><p>Inference workloads also become expensive as applications scale.</p><p>Quantum computing uses a fundamentally different computational model based on quantum states and operations.</p><p>For certain classes of mathematical problems, quantum algorithms offer theoretical speedups over known classical approaches.</p><p>Daniel sees this as an opportunity to rethink how computationally intensive AI tasks might be performed.</p><p>He also discusses the possibility of substantial energy savings.</p><p>That possibility should be treated cautiously.</p><p>Quantum hardware has its own significant operating requirements, including control systems and, for many platforms, cryogenic cooling.</p><p>A theoretical computational advantage does not automatically translate into lower end-to-end energy consumption.</p><p>Nor is quantum computing known to provide a general speedup for all machine learning workloads.</p><p>The meaningful research question is narrower:</p><p><strong>Can specific quantum algorithms solve useful AI-related problems more efficiently than the best available classical alternatives, once the complete system cost is considered?</strong></p><p>That remains an active area of investigation.</p><h3>Privacy: Quantum technology creates both opportunities and threats</h3><p>Daniel also highlights the relationship between quantum computing and privacy.</p><p>Quantum communication techniques, including quantum key distribution, offer ways to detect certain forms of interception under appropriate conditions.</p><p>At the same time, sufficiently capable fault-tolerant quantum computers could threaten widely used public-key cryptographic systems through algorithms such as Shor’s algorithm.</p><p>This creates a dual challenge.</p><p>Quantum technology may enable new security mechanisms while also requiring organizations to migrate away from vulnerable cryptographic approaches.</p><p>For AI systems handling sensitive enterprise information, this matters because privacy is not limited to what the model generates.</p><p>It includes how information is transmitted, stored, accessed, and protected throughout the infrastructure.</p><p>Quantum communication does not, by itself, guarantee privacy for an entire AI application.</p><p>But developments in quantum security could influence how future systems protect sensitive information.</p><h3>Comprehension: Could quantum representations improve machine learning?</h3><p>The third area is the one Daniel finds especially compelling.</p><p>He is interested in whether quantum mathematical structures could provide new ways to represent and process complex relationships.</p><p>Classical machine learning already uses high-dimensional vector spaces to represent information.</p><p>Quantum systems operate using mathematical structures such as complex Hilbert spaces, where states and transformations follow quantum mechanical principles.</p><p>Quantum machine learning researchers are investigating whether these structures can support useful approaches to classification, optimization, and representation learning.</p><p>Daniel sees potential for these methods to contribute to future AI systems with richer ways of handling information.</p><p>He also discusses his research interests in quantum language models.</p><p>However, the possibility of better mathematical representations should not be confused with demonstrated improvements in semantic understanding.</p><p>There is not yet established evidence that quantum language models generally comprehend human language better than leading classical models.</p><p>The potential is intriguing precisely because the research questions remain open.</p><h3>9. Why Classification May Be an Important Test for Quantum AI</h3><p>When Sanjana asks where quantum computing could make a meaningful difference, Daniel points toward optimization and classification.</p><p>Classification is fundamental to machine learning.</p><p>A financial model may estimate whether a borrower belongs to a particular risk category.</p><p>A medical model may classify patterns associated with a disease.</p><p>A pharmaceutical application may attempt to distinguish promising molecular candidates from less suitable ones.</p><p>These tasks often involve finding meaningful boundaries in complex datasets.</p><p>Daniel uses an analogy from Cinderella to explain the intuition behind quantum classification.</p><p>Imagine a large collection of mixed objects that must be separated into two groups.</p><p>A classical approach processes the information using conventional computational operations.</p><p>A quantum approach may encode information into quantum states and use quantum operations to transform those representations.</p><p>In certain mathematical settings, this can lead to different computational strategies.</p><p>But the analogy has an important limitation.</p><p>Quantum superposition does not mean that a quantum computer can simply inspect every possible answer simultaneously and return the correct classification instantly.</p><p>Quantum algorithms must be designed so that useful information can be extracted through measurement.</p><p>Their advantages depend on the structure of the problem, how data is encoded, the cost of preparing quantum states, and the algorithm being used.</p><p>This is why quantum machine learning research frequently investigates whether proposed advantages survive realistic implementation costs.</p><p>For example, a quantum classifier might perform well on a carefully designed dataset but lose its advantage once the overhead of encoding large amounts of classical data is included.</p><p>The engineering challenge is to identify problems where quantum methods offer measurable benefits over strong classical baselines.</p><h3>What should AI engineers pay attention to?</h3><p>For practitioners, the immediate opportunity is not to replace production machine learning pipelines with quantum systems.</p><p>It is to understand which research developments could eventually affect practical architectures.</p><p>Three questions are particularly useful.</p><p>First, does a proposed quantum approach demonstrate an advantage on a relevant problem rather than only a synthetic benchmark?</p><p>Second, does that advantage remain after accounting for data preparation, noise, hardware limitations, and measurement overhead?</p><p>Third, can the result be reproduced and compared fairly against modern classical methods?</p><p>These questions separate engineering progress from technological optimism.</p><p>Daniel’s enthusiasm reflects the potential he sees in quantum mathematical approaches.</p><p>The practical challenge is turning that potential into systems with measurable advantages under real-world constraints.</p><p>And that brings the discussion back to where it began.</p><p>Trust.</p><p>A future quantum-enhanced AI system would still need evaluation, evidence, security, and clear operating boundaries.</p><p>A faster or mathematically more sophisticated system is not automatically a more reliable one.</p><h3>10. What Production AI Teams Should Do Differently Today</h3><p>Daniel’s conversation offers a broader lesson that extends beyond any single model, framework, or emerging technology.</p><p>Reliable AI requires an alignment between what the technology can do, what the organization needs, and what users can verify.</p><p>For engineering teams, that translates into several practical priorities.</p><h3>Begin with a decision, not a model</h3><p>Identify the actual business problem and the decision or workflow the AI system is intended to support.</p><p>Determine why a conventional solution is insufficient.</p><p>Then establish what measurable improvement AI is expected to deliver.</p><h3>Define trust before deployment</h3><p>Decide what evidence users need, what errors are unacceptable, and what the system should do when it is uncertain.</p><p>Trust requirements should influence architecture from the beginning.</p><h3>Treat context as an engineering dependency</h3><p>Relevant information, metadata, permissions, and domain knowledge must be available to the system in a usable form.</p><p>A larger context window does not compensate for incomplete or poorly governed information.</p><h3>Make evaluation continuous</h3><p>Use representative production scenarios, source-grounded tests, regression suites, and feedback from actual users.</p><p>Evaluate both the model’s output and the behavior of the surrounding application.</p><h3>Design for human participation</h3><p>Bring domain experts into the development process.</p><p>Allow them to identify exceptions, validate outputs, and help define success.</p><p>Do not assume that documentation captures every important operational rule.</p><h3>Engineer failure paths deliberately</h3><p>A production AI system should know when to stop, ask for clarification, defer to a human, or decline an action.</p><p>The ability to fail safely is part of reliability.</p><h3>Explore emerging technologies with measurable criteria</h3><p>Quantum machine learning and other new computational paradigms deserve serious research.</p><p>But production adoption should depend on reproducible advantages, not promises alone.</p><p>Together, these principles point toward a different definition of AI maturity.</p><p>It is not the number of models an organization has deployed.</p><p>It is not the complexity of its agent architecture.</p><p>And it is not the apparent intelligence of its demonstrations.</p><p>It is the organization’s ability to deliver dependable outcomes while understanding and controlling the risks.</p><h3>The Real Breakthrough Will Be When AI Earns the Right to Be Trusted</h3><p>There is a recurring idea throughout Daniel’s conversation with Sanjana.</p><p>Technology succeeds when it solves an important problem that people genuinely need solved.</p><p>But for generative AI, solving the problem is only part of the challenge.</p><p>The system must also establish enough confidence for people to use its results.</p><p>That confidence cannot come from impressive demonstrations alone.</p><p>It must come from evidence.</p><p>From well-defined expectations.</p><p>From careful evaluation.</p><p>From architectures that recognize uncertainty.</p><p>And from organizations willing to share the knowledge required to make their systems work.</p><p>Quantum computing may eventually change how certain computational problems are approached.</p><p>New language models will continue expanding what AI applications can accomplish.</p><p>Agentic systems will likely take on increasingly complex workflows.</p><p>But none of those developments removes the fundamental engineering responsibility to establish when a system is dependable.</p><p>Daniel’s experience offers a reminder that applies equally to conventional software, today’s generative AI, and tomorrow’s emerging architectures.</p><p>The most consequential failures often begin with assumptions nobody thought to question.</p><p>And the most valuable systems are not necessarily the ones capable of doing the most.</p><p>They are the ones that solve meaningful problems within clearly understood boundaries.</p><p><strong>Perhaps the next great leap in artificial intelligence will not be an AI that can answer every question.</strong></p><p><strong>It will be an AI that knows when its answer can be trusted, can show us why, and knows what to do when it cannot.</strong></p><p><em>This article is adapted from an expert conversation hosted by </em><strong><em>Sanjana Gupta, Relationship Lead at Packt</em></strong><em>, with </em><a href="https://www.linkedin.com/in/daniel-buchta-4355b1b6/"><strong><em>Daniel Buchta, CEO of Avenue78</em></strong><em>,</em></a><em> exploring production AI architecture, trust, evaluation, real-world engineering constraints, and the future of quantum machine learning.</em></p><p><em>The architectural examples and engineering recommendations expand on themes from the interview. Forward-looking quantum applications are discussed as research possibilities rather than established production capabilities.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e82af6702ccc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/the-architecture-of-trust-why-reliable-ai-requires-more-than-intelligent-models-e82af6702ccc">The Architecture of Trust: Why Reliable AI Requires More Than Intelligent Models</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Missing Email Field Nearly Shut Down a Factory. The Real Problem Was Data Governance.]]></title>
            <link>https://medium.com/packt-hub/a-missing-email-field-nearly-shut-down-a-factory-the-real-problem-was-data-governance-2f48ce74262d?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/2f48ce74262d</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 11:53:12 GMT</pubDate>
            <atom:updated>2026-11-02T11:53:12.706Z</atom:updated>
            <content:encoded><![CDATA[<h4>THE HIDDEN BUSINESS COST OF BAD DATA</h4><h4>How Robert Hawker helped uncover a critical enterprise data failure, improve data quality from 73% to 93%, and rethink what it takes to build trusted analytics with Microsoft Fabric and Power BI.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-vRisbyxVO_2BMoTCoaVQ.png" /></figure><h3>The Data Problem Nobody Saw Coming</h3><p>A manufacturing company was on the verge of losing essential supplier services. Payments were delayed, supplier complaints were mounting, and the finance team was struggling to keep up. Senior leadership believed the organization needed more people to manage the growing backlog.</p><p>But the real problem wasn’t staffing, financial systems, or even the payment process itself.</p><p>It was a missing email address.</p><p>Following a hurried data migration, more than 90% of supplier records were missing the email addresses required to send remittance advices. The system was generating payment notifications, but suppliers weren’t receiving them. Without those notifications, suppliers struggled to reconcile incoming payments against outstanding invoices.</p><p>Queries multiplied. The payments team became overwhelmed. Payment backlogs grew. Eventually, suppliers threatened to withdraw services, including the electricity supply to a major manufacturing plant in the UK.</p><p>A seemingly minor data quality issue had escalated into a serious operational risk.</p><p>The most troubling part? The organization had spent considerable time treating the symptoms without recognizing the underlying cause.</p><p>This is the kind of problem that <a href="https://www.linkedin.com/in/robert-hawker-b2a63b5/"><strong>Robert Hawker, Microsoft Fabric and Power BI Consultant and Trainer at MELORO LIMITED</strong></a>, has encountered while helping organizations navigate enterprise data governance and analytics challenges.</p><p>In a conversation with <strong>Apeksha Shetty, Portfolio Manager at Packt</strong>, Hawker explores why organizations continue to struggle with unreliable reporting, inconsistent business metrics, and poor analytics adoption despite investing heavily in modern platforms.</p><p>Drawing on real-world experiences, including a data quality initiative that improved average overall data quality from 73% to 93%, he examines how organizations can move beyond reactive data fixes and establish sustainable governance practices.</p><p>And his perspective challenges a familiar assumption: <strong>the biggest obstacle to better analytics isn’t always the technology. It’s the business problems hidden beneath the data.</strong></p><h3>1. Why Data Quality Problems Often Disguise Themselves as Business Problems</h3><p>The supplier payment crisis reveals a recurring weakness in enterprise data management.</p><p>Organizations often recognize data quality issues only after they begin affecting business operations.</p><p>An incorrect customer address becomes a delivery failure. Incomplete product information creates inventory discrepancies. Inconsistent financial definitions lead to conflicting management reports.</p><p>By the time these problems reach leadership, the conversation is rarely about data quality.</p><p>It’s about operational efficiency, customer satisfaction, compliance, or rising costs.</p><p>Hawker’s experience demonstrates why identifying the underlying cause matters more than immediately addressing the visible symptoms.</p><p>At the manufacturing organization, the initial response focused on the payments team’s inability to manage supplier queries.</p><p>But adding resources would not have prevented the same queries from recurring.</p><p>The missing remittance advice information had created a process failure that continued generating additional work.</p><h3>From Operational Crisis to Measurable Data Improvement</h3><p>Once the root cause became clear, data quality became a board-level priority.</p><p>Hawker helped establish a structured program focused on identifying, measuring, correcting, and continuously monitoring data quality.</p><p>Working with business process owners and data owners, the team developed rules reflecting the organization’s actual operational requirements.</p><p>They also built a tool capable of measuring quality across different data objects, quality dimensions, companies, and countries.</p><p>This provided visibility into where problems existed and whether corrective actions were producing sustained improvements.</p><p>The results were significant.</p><p><strong>Average overall data quality improved from 73% to 93% during Hawker’s tenure</strong>, contributing to better operational and analytical outcomes.</p><p>However, the improvement wasn’t simply the result of introducing another technology tool.</p><p>It came from changing how the organization understood and managed its data.</p><h3>The Practical Challenge: Business Owners Don’t Have Time to Define Every Rule</h3><p>One of the biggest obstacles was obtaining input from employees who understood the business processes.</p><p>The organization was still establishing its systems and workflows, leaving business users with limited time to participate in detailed governance exercises.</p><p>Rather than waiting for stakeholders to document every requirement, Hawker’s team took a different approach.</p><p>They extracted data from the ERP system, profiled it, and identified potential business rules.</p><p>These proposed rules were then presented to process owners for validation and refinement.</p><p>This reduced the effort required from stakeholders while allowing the team to establish an initial set of quality rules quickly.</p><p>The approach illustrates an important principle for data engineering teams: business experts don’t always need to create requirements from scratch.</p><p>Sometimes, the most effective approach is to use the data itself to identify potential problems and then work with stakeholders to determine which ones matter.</p><p><strong>The objective isn’t to make every field perfect. It’s to ensure the data is sufficiently reliable for the business processes that depend on it.</strong></p><h3>2. The Power BI Adoption Paradox: Better Dashboards, Same Old Spreadsheets</h3><p>The same disconnect between technology and business requirements appears in analytics adoption.</p><p>Organizations invest in Power BI, establish reporting environments, and publish dashboards across departments.</p><p>Yet employees continue using Excel.</p><p>Leadership questions why the new reporting platform isn’t delivering the expected value.</p><p>Is the technology inadequate? Are employees resistant to change? Does the organization need additional training?</p><p>Hawker suggests that the problem often begins much earlier, during report development.</p><p>In his experience, one of the most common reasons for poor Power BI adoption is that report developers aren’t sufficiently connected to the business users they’re supporting.</p><p>Developers understand the datasets, relationships, and semantic models.</p><p>Business users understand the decisions they need to make.</p><p>But the two groups don’t always collaborate closely enough to translate those requirements into useful reporting.</p><h3>When a Technically Correct Report Still Fails</h3><p>Consider a sales manager investigating declining performance in a particular product category.</p><p>The analytics team delivers a dashboard showing revenue trends, regional sales, and monthly growth.</p><p>The calculations are accurate, and the visualizations are clear.</p><p>But the manager needs to understand whether the decline is caused by inventory shortages, pricing changes, or weakening customer demand.</p><p>The report contains information, but it doesn’t answer the question driving the investigation.</p><p>This illustrative example captures the problem Hawker identifies.</p><p>A technically correct dashboard isn’t necessarily a useful dashboard.</p><p>The solution begins with understanding how employees make decisions and what information those decisions require.</p><p>Hawker recommends starting with conversations involving the people who should benefit most from the reporting.</p><p>Their experiences often reveal the underlying issue.</p><p>Slow or outdated reports may indicate inefficient semantic models, failed refreshes, or poorly managed Fabric capacity.</p><p>Incorrect numbers may point to data quality problems or insufficient validation.</p><p>Multiple reports covering the same subject may indicate weak analytical governance.</p><p>And employees who prefer Excel may simply be relying on a workflow that already meets their needs.</p><h3>Why Forcing Power BI Adoption Rarely Works</h3><p>Organizations sometimes treat spreadsheet usage as evidence of resistance to modernization.</p><p>But employees need a meaningful reason to abandon a familiar and reliable process.</p><p>A Power BI report should offer something better: reduced manual work, stronger security, more accessible information, or improved analytical capabilities.</p><p>Hawker also cautions against restricting familiar capabilities too quickly.</p><p>Preventing users from exporting Power BI data to Excel may eventually support security and governance objectives.</p><p>But introducing such restrictions before employees trust the new reporting environment can create frustration and resistance.</p><p>The lesson is straightforward.</p><p><strong>Analytics adoption isn’t achieved by forcing employees to use a platform. It’s achieved by making that platform more useful than the alternatives.</strong></p><h3>3. When Five Reports Produce Five Different Answers</h3><p>Poor adoption is only one symptom of a broader analytical governance problem.</p><p>Another emerges when different departments develop independent reporting products for the same business subject.</p><p>A finance team creates a revenue dashboard.</p><p>Sales builds another.</p><p>Operations develops its own version.</p><p>Each report uses slightly different calculations, filters, or reporting periods.</p><p>When leadership requests a single revenue figure, the organization produces conflicting answers.</p><p>The issue isn’t necessarily that any individual report is technically broken.</p><p>It’s that the organization has allowed multiple definitions of the same business metric to develop independently.</p><p>Hawker sees this as one of the strongest arguments for enterprise semantic modeling.</p><h3>Building a Shared Foundation for Business Metrics</h3><p>Rather than allowing every department to recreate important calculations, Hawker recommends maintaining a relatively small number of centrally managed semantic models.</p><p>These models should be organized around meaningful business domains and contain reusable metrics, relationships, and logic.</p><p>For a streaming organization, for example, a model covering subscribers and engagement may be more useful than a collection of generic departmental models.</p><p>Reports built on top of the shared model can answer different business questions while relying on consistent underlying definitions.</p><p>This approach reduces duplication and improves confidence in reporting.</p><p>But it also raises an architectural question.</p><p>How much control should remain centralized, and how much freedom should business users have?</p><p>Hawker’s answer is to separate the responsibilities.</p><p><strong>Centralize enterprise data engineering and semantic modeling. Decentralize report development where business users have the knowledge and skills to create useful analytical products.</strong></p><h3>Why Centralized Data Engineering Matters</h3><p>Enterprise data engineering teams should manage the ingestion, transformation, integration, and preparation of important organizational datasets.</p><p>This becomes particularly valuable when business processes depend on information from multiple systems.</p><p>Manufacturing planning, for example, might require sales pipeline information from CRM, inventory data from ERP, and production lead times from operational systems.</p><p>Without coordinated engineering, different teams may repeatedly recreate these integrations.</p><p>A centralized approach establishes reliable datasets that can support multiple business requirements.</p><h3>Giving Business Users Freedom Without Losing Consistency</h3><p>Once trusted datasets and semantic models are available, business users can develop their own reporting products.</p><p>They can explore information, answer department-specific questions, and respond quickly to changing requirements.</p><p>However, that flexibility requires a degree of maturity.</p><p>Report developers must understand the shared models and avoid introducing conflicting versions of established metrics.</p><p>When a new metric is required, it should ideally be incorporated into the enterprise semantic model rather than repeatedly recreated inside individual reports.</p><p>Hawker also believes organizations should preserve opportunities for experimentation.</p><p>If a business user develops a valuable new data engineering or modeling approach using Microsoft Fabric, the organization should have a way to bring that innovation into the centrally managed environment.</p><p>The goal isn’t to prevent employees from experimenting.</p><p>It’s to ensure that successful innovations can become trusted, reusable enterprise capabilities.</p><h3>4. The Governance Dilemma: How Much Control Is Too Much?</h3><p>Governance is essential for trustworthy analytics.</p><p>But excessive governance can become another obstacle to adoption.</p><p>A report developer may spend two weeks building a useful reporting product, only to discover that the approval process requires another six weeks.</p><p>By the time the report is certified, the original business requirement may have changed.</p><p>Hawker identifies this as a common governance anti-pattern.</p><p>Organizations introduce controls to improve reporting quality, but those controls become so demanding that developers and business users struggle to deliver value.</p><p>The solution isn’t to eliminate governance.</p><p>It’s to make governance proportionate to the importance and risk of the reporting product.</p><h3>Different Decisions Require Different Levels of Assurance</h3><p>A prototype used to explore an idea doesn’t carry the same risk as a report supporting a major financial decision.</p><p>Similarly, internal operational reporting may not require the same level of assurance as information submitted to regulators or shared with customers.</p><p>Hawker recommends classifying reporting content according to its intended use.</p><p>Exploratory reports and small-team reporting can receive lighter controls appropriate to their limited impact.</p><p>Reports used for important internal decisions require stronger review, testing, and documentation.</p><p>External or regulated reporting requires the highest level of assurance.</p><p>The underlying quality principles remain consistent, but the depth of review changes.</p><p>For example, internal reporting may reasonably combine data from enterprise platforms with supplementary spreadsheets.</p><p>For external reporting, Hawker recommends using governed system-sourced data, with data engineering teams responsible for managing its quality.</p><p>Highly regulated industries may require additional oversight.</p><p>In pharmaceutical organizations, reporting associated with GxP compliance may need involvement from the quality function.</p><h3>Why Certification Should Build Confidence, Not Create Delays</h3><p>Hawker recommends a formal quality assurance process that includes peer review, testing, documentation, and consistent report design.</p><p>Reports that meet the relevant requirements can receive Power BI endorsement levels such as promoted or certified.</p><p>These classifications help employees identify reporting products that have undergone appropriate review.</p><p>But the process must remain practical.</p><p>If certification takes significantly longer than development, users may lose interest or seek alternatives.</p><p>There is also a technical reason to maintain good development standards.</p><p>Poorly optimized reports and semantic models can consume excessive Fabric capacity, affecting performance and cost.</p><p>Governance therefore protects more than the accuracy of business information.</p><p>It also supports the efficiency and sustainability of the analytical environment.</p><p><strong>Effective governance should make trustworthy reporting easier to deliver — not harder to adopt.</strong></p><h3>5. The Overlooked Reason Trusted Reports Don’t Get Used</h3><p>Even when reports are accurate and well governed, employees may struggle to find the information they need.</p><p>Large organizations can accumulate hundreds or thousands of reporting assets.</p><p>Some are actively maintained.</p><p>Others are outdated.</p><p>Several may cover similar business subjects.</p><p>Without clear guidance, employees may not know which reports are authoritative.</p><p>Hawker recommends creating a curated reporting catalogue.</p><p>This should go beyond a technical inventory generated from Fabric administration tools.</p><p>A useful catalogue explains what reports contain, which business metrics they use, who owns them, and when they should be used.</p><p>The difference is significant.</p><p>A technical inventory tells employees what exists.</p><p>A curated catalogue helps them determine which reporting product they can trust.</p><p>Hawker also recommends embedding reports into established business procedures.</p><p>In organizations with detailed standard operating procedures, such as pharmaceutical companies, the relevant Power BI reports should be referenced directly within those workflows.</p><p>This makes reporting part of everyday operations rather than a separate activity employees must remember to perform.</p><p>Another important element is a strong Power BI community.</p><p>By bringing report developers and semantic model developers together, organizations can improve knowledge sharing, encourage collaboration, and identify opportunities to standardize useful reporting practices.</p><p>The broader lesson is that analytics adoption depends on discoverability, usability, and trust — not simply the availability of dashboards.</p><h3>6. Migrating to Microsoft Fabric? Don’t Rebuild the Problems You’re Trying to Escape</h3><p>For organizations beginning a Microsoft Fabric migration, Hawker highlights a mistake that can undermine the value of the entire project.</p><p>Teams often treat migration as a technical replication exercise.</p><p>Existing pipelines are recreated.</p><p>Transformations are transferred.</p><p>Semantic models and reports are rebuilt to resemble their previous versions.</p><p>But the existing platform may have been designed years earlier, when the organization’s business requirements were very different.</p><p>Reproducing the same architecture without questioning its relevance can carry old inefficiencies into the new environment.</p><p>Hawker recommends using migration as an opportunity to reassess what the business actually needs.</p><h3>Make the Architectural Decisions Early</h3><p>Before large-scale development begins, organizations should agree on important architectural principles.</p><p>These include where data transformations will occur, how engineering environments will be layered, and when Fabric Lakehouses, Warehouses, or Materialized Lake Views should be used.</p><p>Establishing these principles early helps prevent different teams from developing incompatible patterns.</p><p>Once the architecture is agreed, Hawker recommends an agile implementation approach.</p><p>Requirements should be discovered, documented, built, and tested in manageable sprints.</p><p>Instead of waiting for a large migration to finish, teams can release smaller increments of production-ready functionality that deliver business value.</p><h3>Why the Location of Data Transformations Matters</h3><p>Hawker recommends preparing dimensions and facts upstream so they are ready for star-schema semantic modeling.</p><p>Where appropriate, notebooks and Lakehouses can handle transformation work before the data reaches Power BI semantic models.</p><p>This reduces the need for extensive downstream transformation logic and can support Direct Lake semantic models.</p><p>Direct Lake can also reduce dependence on the conventional scheduled refresh process associated with Import models.</p><p>However, Hawker emphasizes that technical decisions must reflect the organization’s skills.</p><p>A team experienced in Power Query but unfamiliar with PySpark may need a different implementation approach.</p><p>The best architecture is not necessarily the most sophisticated one.</p><p>It’s the architecture the organization can develop, govern, and maintain effectively.</p><h3>7. The Fabric Cost Problem That Begins With Development Decisions</h3><p>Microsoft Fabric brings multiple analytical capabilities into a unified environment.</p><p>But that flexibility also makes workload efficiency an important operational concern.</p><p>Hawker emphasizes that capacity management should begin on day one.</p><p>A poorly optimized notebook or semantic model may appear manageable during a pilot.</p><p>As data volumes increase, however, inefficient processing can become increasingly expensive.</p><p>He offers a straightforward example.</p><p>A notebook performing relatively simple transformations on a few thousand rows should not consume 10,000 capacity units every day without prompting an investigation.</p><p>If it does, the implementation may contain inefficiencies that will become more costly as usage grows.</p><h3>Why Early Monitoring Matters</h3><p>Hawker recommends implementing Fabric Unified Admin Monitoring (FUAM) early in the platform’s lifecycle.</p><p>The solution provides visibility into tenant activity and inventory, helping administrators understand how the environment is being used.</p><p>Establishing monitoring from the beginning also helps preserve historical information.</p><p>Because Microsoft’s audit logs retain activity for a limited period, organizations that delay monitoring may lose useful visibility into earlier platform activity.</p><p>This information can help teams investigate governance issues, understand usage patterns, and manage platform operations more effectively.</p><p>The larger principle applies to cloud analytics generally.</p><p><strong>Capacity optimization isn’t something to address only after costs become a problem. It’s part of building reliable, production-ready data systems.</strong></p><h3>8. Building a Microsoft Fabric Roadmap That Delivers Value Early</h3><p>Hawker cautions against applying a single implementation roadmap to every organization.</p><p>A business migrating an established data platform has different requirements from one building a data infrastructure for the first time.</p><p>Similarly, an organization adopting Fabric only for Power BI reporting will have different priorities from one implementing its full data engineering capabilities.</p><p>However, several principles remain relevant across implementations.</p><p>The journey begins with establishing administration and governance responsibilities, creating initial capacity, and confirming the business scope.</p><p>Organizations should also define architectural principles and complete necessary security and governance assessments.</p><p>Next comes requirements discovery.</p><p>Business stakeholders and technical teams need to agree on reporting requirements, enterprise data models, and the source systems required to support them.</p><p>Initial connections to ERP, CRM, and other systems can then be established in development environments.</p><p>This stage may involve resolving network dependencies, configuring gateways, and understanding source-system schemas.</p><p>Once connectivity is established, teams can begin ingesting data, documenting transformations, and preparing analytical structures.</p><p>After the required governance approvals, production connectivity and incremental development can proceed.</p><p>Hawker recommends delivering in short sprints, with small tranches of functionality reaching production and generating value early.</p><p>This approach provides opportunities to validate assumptions, identify problems, and improve the implementation before extending it across the enterprise.</p><p>Rather than measuring success solely by migration milestones, organizations can evaluate whether each release improves reporting, data reliability, or business decision-making.</p><h3>9. The Most Important Governance Decision: Where Do You Start?</h3><p>Perhaps the most valuable lesson from Hawker’s experience is that data governance shouldn’t begin with an attempt to fix every dataset.</p><p>Organizations often start by identifying incomplete fields, inconsistent values, and outdated records.</p><p>But without a clear business priority, these programs can become expensive exercises with uncertain outcomes.</p><p>Hawker recommends beginning with the organization’s strategy.</p><p>What is the business trying to achieve?</p><p>Which obstacles are preventing progress?</p><p>And how many of those obstacles are connected to data, even if they don’t initially appear to be?</p><p>This approach makes it possible to link governance initiatives directly to business outcomes.</p><h3>Choose Quick Wins That Build Long-Term Capabilities</h3><p>Hawker recommends evaluating potential initiatives based on their benefits and the effort required to deliver them.</p><p>High-value, lower-effort improvements are often useful starting points.</p><p>But he also emphasizes the importance of stakeholder support.</p><p>An early initiative involving a committed business owner can help demonstrate success and build confidence in the broader governance program.</p><p>The important condition is that the initiative must contribute to the organization’s longer-term strategy.</p><p>One of Hawker’s experiences illustrates this distinction.</p><p>In a previous role, a proposal had been developed to pay an external supplier for a one-time cleanup of supplier data using standard industry rules.</p><p>Rather than proceeding with that approach, Hawker redirected the investment toward establishing a sustainable data quality process and supporting tool.</p><p>The resulting capability used rules tailored to the organization’s requirements and supported continued quality improvement.</p><p>A one-time cleanup might have improved the data temporarily.</p><p>The repeatable process helped the organization maintain improvements over time.</p><p><strong>The strongest governance initiatives don’t simply correct today’s errors. They reduce the likelihood of those errors becoming tomorrow’s business problems.</strong></p><h3>10. What Data Leaders Should Take Away</h3><p>Across the conversation, Hawker’s experiences reveal a consistent pattern.</p><p>Organizations often invest in technology before fully understanding the business problems the technology is supposed to solve.</p><p>They build dashboards without establishing consistent metrics.</p><p>They introduce self-service analytics without defining the responsibilities of central and business teams.</p><p>They implement governance controls without considering the impact on adoption.</p><p>And they migrate platforms without questioning whether the existing architecture still meets business needs.</p><p>The alternative is a more deliberate approach.</p><p>Start with the business outcome.</p><p>Identify the data dependencies that influence it.</p><p>Establish quality rules and ownership.</p><p>Create reusable engineering and semantic modeling foundations.</p><p>Give business users the freedom to develop reports within those trusted structures.</p><p>And measure whether the resulting environment improves decisions, processes, and operational efficiency.</p><p>For organizations working with Power BI and Microsoft Fabric, this means asking questions that go beyond technical implementation.</p><p>Are employees using the reports because they trust them?</p><p>Can different departments agree on the meaning of important business metrics?</p><p>Are data quality issues identified before they disrupt operations?</p><p>Can new reporting products move through governance without unnecessary delays?</p><p>And is the platform designed to remain efficient as data volumes and usage grow?</p><p>These questions provide a stronger measure of analytics maturity than the number of dashboards published or datasets migrated.</p><h3>The Final Lesson: Your Biggest Data Problem Might Not Look Like a Data Problem</h3><p>The manufacturing company in Hawker’s case initially saw a supplier payment crisis.</p><p>It didn’t see incomplete data.</p><p>Organizations struggling with Power BI adoption often see a technology or training challenge.</p><p>They may not recognize the disconnect between business requirements, shared metric definitions, and reporting design.</p><p>And companies moving to Microsoft Fabric may see an opportunity to modernize infrastructure without recognizing the need to reconsider how their data environment is governed and maintained.</p><p>These challenges share a common lesson.</p><p>Modern technology can make data easier to access, process, and analyze.</p><p>But it cannot independently establish the business meaning, ownership, and trust that reliable decisions require.</p><p>Robert Hawker’s experience demonstrates why the most effective data initiatives begin with the problems organizations are trying to solve — not the tools they want to implement.</p><p>The supplier payment crisis eventually helped turn data quality into an executive priority.</p><p>The resulting program improved average overall data quality from 73% to 93%, showing what becomes possible when an organization moves beyond temporary fixes and establishes sustainable practices.</p><p>For data engineers, BI developers, analytics leaders, and organizations adopting Microsoft Fabric, the takeaway is clear.</p><p><strong>The real measure of an analytics platform isn’t how many dashboards it produces. It’s whether the organization can trust the information enough to act on it.</strong></p><h3>About the Expert</h3><p><a href="https://www.linkedin.com/in/robert-hawker-b2a63b5/"><strong>Robert Hawker</strong> is a Microsoft Fabric and Power BI Consultant and Trainer at MELORO LIMITED</a>. His experience spans enterprise data governance, data quality improvement, analytics adoption, semantic modeling, and Microsoft Fabric implementation. He is also the author of <em>Practical Data Quality</em>.</p><h3>About the Host</h3><p><strong>Apeksha Shetty</strong>, Portfolio Manager at Packt, hosts this Expert Edge conversation, exploring the practical challenges organizations face when building trustworthy enterprise data environments and scaling analytics with Microsoft Fabric and Power BI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f48ce74262d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/a-missing-email-field-nearly-shut-down-a-factory-the-real-problem-was-data-governance-2f48ce74262d">A Missing Email Field Nearly Shut Down a Factory. The Real Problem Was Data Governance.</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Production AI Agent Engineering: Solving Latency, Reliability, and Observability Challenges]]></title>
            <link>https://medium.com/packt-hub/production-ai-agent-engineering-solving-latency-reliability-and-observability-challenges-293d5d926d21?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/293d5d926d21</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 12:20:51 GMT</pubDate>
            <atom:updated>2026-10-29T13:12:15.572Z</atom:updated>
            <content:encoded><![CDATA[<h4>Expert Insights | From AI Prototypes to Production-Ready Systems</h4><h4>AWS GenAI expert Evandro Franco explores the architectural decisions and engineering practices required to take agentic applications from prototypes to reliable enterprise systems.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwWEfU6Mlkf8pJsffPGk6A.png" /><figcaption>The engineering layers behind production-ready AI agents — from enterprise access and tool orchestration to observability, evaluation, resilience, and continuous improvement.</figcaption></figure><p>Imagine spending weeks building an AI agent that works exactly as intended.</p><p>It understands natural-language requests, retrieves relevant information, calls external APIs, and completes complex tasks with minimal human intervention. Your development team is impressed. Stakeholders see the potential. The prototype gets approved.</p><p>Then someone asks a deceptively simple question:</p><p><strong>“Can we deploy this for 10,000 users?”</strong></p><p>Suddenly, the conversation changes.</p><p>What happens when hundreds of requests arrive simultaneously? What if an external API fails halfway through a workflow? How do you determine why an agent made a particular decision? Who pays when one department generates ten times more model calls than another? And how do you know whether the agent is still performing correctly after deployment?</p><p>These are not theoretical concerns. They are the engineering challenges emerging as enterprises move beyond GenAI experimentation and begin deploying autonomous applications into production.</p><p>In a conversation with <strong>Nilesh Kowadkar from Packt</strong>, <a href="https://www.linkedin.com/in/evandrogfranco/"><strong>Evandro Franco, Senior GenAI Data Scientist at Amazon Web Services (AWS)</strong></a>, shared what he has observed while working with enterprise customers and focusing on Amazon Bedrock AgentCore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*mQnTXDJJn5hLM8rjqEYDgA.jpeg" /><figcaption><a href="https://www.linkedin.com/in/evandrogfranco/"><strong>Evandro Franco, Senior GenAI Data Scientist at Amazon Web Services (AWS)</strong></a></figcaption></figure><p>His central observation reveals an important shift in the AI industry: organizations are increasingly moving from experimenting with agents to confronting the realities of operating them.</p><p>And the hardest part is no longer simply getting an agent to work.</p><p>It is making sure that the agent continues to work reliably, securely, and efficiently when the real world becomes unpredictable.</p><h3>The AI Agent That Worked Perfectly — Until Everyone Started Using It</h3><p>Consider an enterprise building an AI-powered customer support agent.</p><p>During development, the agent performs three straightforward operations:</p><ol><li>Understands a customer request.</li><li>Retrieves relevant information from internal systems.</li><li>Generates a response or invokes a tool to complete the task.</li></ol><p>With a handful of test users, everything looks promising.</p><p>But production introduces conditions that a controlled demonstration rarely captures.</p><p>A request might require several model invocations. Some users ask simple questions, while others trigger complex reasoning workflows. External tools introduce additional network latency. A downstream service may become temporarily unavailable. Traffic can increase dramatically during peak hours.</p><p>Now imagine the same agent handling thousands of concurrent requests.</p><p>Even if the underlying language model performs well, the application surrounding it may struggle.</p><p>Evandro highlighted scaling, resilience, and latency as three recurring challenges among enterprises moving their GenAI systems into production.</p><p>The distinction matters because <strong>model intelligence and application reliability are two different engineering problems</strong>.</p><p>A powerful model does not automatically provide predictable response times, graceful failure recovery, or efficient resource utilization.</p><h3>Why latency becomes an architectural problem</h3><p>Traditional applications often follow relatively predictable execution paths.</p><p>An agentic application may behave differently.</p><p>A single request can trigger multiple reasoning steps, tool calls, retrieval operations, and additional model invocations before producing a final answer.</p><p>For example:</p><p><strong>User request → Agent reasoning → Knowledge retrieval → API call → Additional reasoning → Response</strong></p><p>Every step introduces potential latency.</p><p>If one external API takes several seconds to respond, the entire workflow can slow down. If the agent repeatedly invokes tools because it cannot resolve an ambiguous result, response times become even less predictable.</p><p>The problem is not necessarily that the model is too slow.</p><p>It may be that the application is doing too much work.</p><p>Evandro pointed to smaller models and code optimization as potential ways to address latency challenges.</p><p>This suggests a broader engineering principle: not every operation in an agentic workflow needs the same level of model intelligence.</p><p>For example, a simple classification task might be handled by a smaller model, while a more complex reasoning task could be escalated to a more capable one.</p><p>Other practical improvements include reducing unnecessary tool calls, introducing appropriate timeouts, caching reusable results, and separating synchronous tasks from operations that can run asynchronously.</p><p>These are architectural strategies rather than specific implementations described in the interview, but they illustrate the trade-offs Evandro identified.</p><p><strong>The engineering question is no longer simply, “Which model gives the best answer?” It is, “Which combination of models, tools, and execution strategies produces an acceptable answer within our latency and cost constraints?”</strong></p><h3>When Your AI Agent Becomes a Frankenstein of APIs, Tools, and MCP Servers</h3><p>One of the most revealing moments in the conversation came when Evandro described the growing complexity of enterprise agents.</p><p>As agents accumulate APIs, tools, and Model Context Protocol (MCP) integrations, he compared them to a <em>Frankenstein</em> — a collection of interconnected components that becomes increasingly difficult to troubleshoot.</p><p>It is a useful description of a problem many AI engineers will recognize.</p><p>A modern enterprise agent might interact with a CRM, a database, a document repository, a search service, an internal application, and multiple external APIs.</p><p>Each integration adds functionality.</p><p>But every integration also adds another potential failure point.</p><p>Imagine an agent tasked with generating a quarterly financial report.</p><p>It retrieves sales figures from a database, obtains customer information from a CRM, queries an analytics service, and uses an LLM to summarize the results.</p><p>The final report contains incorrect revenue figures.</p><p>Where did the failure occur?</p><p>Was the database query wrong? Did the CRM return outdated information? Did the model misinterpret the retrieved data? Was a tool response truncated? Or did an earlier reasoning step introduce an incorrect assumption?</p><p>Without adequate observability, engineers may see only the incorrect final answer.</p><p>They have no reliable way to reconstruct how the agent arrived there.</p><h3>Observability needs to follow the entire agent workflow</h3><p>Traditional application monitoring typically focuses on metrics such as CPU utilization, request latency, error rates, and service availability.</p><p>Those metrics remain important for AI agents, but they do not fully explain agent behavior.</p><p>Engineers also need visibility into the decisions and interactions that occur within an execution.</p><p>A practical observability approach can capture:</p><ul><li><strong>Execution traces:</strong> The sequence of model invocations, tool calls, and workflow transitions.</li><li><strong>Tool-level latency:</strong> Which external services contribute most to response delays.</li><li><strong>Failure information:</strong> Where timeouts, invalid responses, or unsuccessful tool executions occur.</li><li><strong>Model usage:</strong> How many model invocations and tokens are consumed by a task.</li><li><strong>Outcome signals:</strong> Whether the agent successfully completed the intended operation.</li></ul><p>Consider a trace showing that an agent called the same search tool five times before returning an answer.</p><p>That behavior may indicate poor retrieval quality, ambiguous tool descriptions, or an ineffective planning strategy.</p><p>Without tracing, the team may assume that the language model itself is responsible for the delay.</p><p>With tracing, engineers can investigate the actual bottleneck.</p><p>This is why observability becomes more than a debugging convenience.</p><p><strong>It is the mechanism that makes agent behavior understandable enough to improve, govern, and trust.</strong></p><h3>The Hidden Enterprise Challenge: Who Can Access What, and Who Pays?</h3><p>Not every obstacle to production AI involves model performance.</p><p>Some of the most difficult challenges emerge from enterprise governance requirements.</p><p>Evandro described how large organizations often need granular controls beyond what their underlying cloud infrastructure provides by default.</p><p>For example, an organization may need to allocate AI-related costs across different business units, restrict access to particular resources, and apply internal policies within a shared environment.</p><p>These requirements become especially complicated when multiple teams use the same agent platform.</p><p>Consider a financial services company deploying an internal AI assistant.</p><p>The finance department needs access to financial reporting systems. The HR department needs access to employee-related information. The engineering team requires access to technical documentation.</p><p>All three departments may use the same underlying AI infrastructure.</p><p>But they should not have identical permissions.</p><p>An agent authorized to retrieve engineering documentation should not automatically gain access to confidential employee records simply because both systems are reachable through the same platform.</p><p>Similarly, the organization needs to understand which department is responsible for the infrastructure and model usage costs generated by each workflow.</p><h3>Why cloud-level permissions may not be enough</h3><p>Cloud infrastructure can provide account-level and resource-level security controls.</p><p>However, enterprises may also require application-specific authorization.</p><p>For example, two users within the same application may have different permissions to invoke a particular tool or retrieve a specific category of information.</p><p>This creates a need for additional governance layers that understand user identity, organizational context, tool permissions, and data-access policies.</p><p>A production architecture may therefore need to answer questions such as:</p><ul><li>Can this user invoke this particular agent capability?</li><li>Is the agent authorized to access the requested dataset?</li><li>Which tools can the agent execute on the user’s behalf?</li><li>How should usage costs be attributed to a department or cost center?</li><li>Can administrators audit sensitive operations?</li></ul><p>Evandro explained that enterprises sometimes build additional platform capabilities on top of AWS services to meet such requirements.</p><p>That approach can provide flexibility, but it also introduces engineering responsibilities.</p><p>Teams must maintain the controls, ensure their availability, and keep them consistent as the application evolves.</p><p>The takeaway is straightforward:</p><p><strong>An AI agent’s ability to perform an action should never be confused with its authorization to perform that action.</strong></p><p>Production readiness requires both.</p><h3>Building the Agent Is Easy. Keeping It Reliable Is the Hard Part.</h3><p>Evandro drew a parallel between today’s agentic AI challenges and the earlier evolution of machine learning operations.</p><p>In traditional machine learning, training a model was only one part of the problem.</p><p>Teams also needed to deploy models, monitor performance, manage infrastructure, handle changes in data, and maintain acceptable prediction quality over time.</p><p>Agentic AI is following a similar pattern.</p><p>A successful prototype proves that an agent can complete a task under certain conditions.</p><p>A production-ready system must demonstrate that it can perform consistently across a much broader range of conditions.</p><p>That includes conditions the original developers may not have anticipated.</p><h3>Resilience must be designed, not assumed</h3><p>Imagine an AI agent that processes insurance claims.</p><p>It retrieves policy information, validates submitted documents, checks internal records, and prepares a recommendation.</p><p>Now suppose the document retrieval service becomes temporarily unavailable.</p><p>A poorly designed agent may continue reasoning with incomplete information and generate a confident but unsupported recommendation.</p><p>A more resilient architecture would recognize that a required dependency failed.</p><p>Depending on the business workflow, it might retry the operation, return a controlled error, request human review, or pause execution until the necessary information becomes available.</p><p>The important point is that failure should not silently become an incorrect business decision.</p><p>This is where production engineering practices become essential.</p><p>Timeout policies, bounded retries, fallback strategies, idempotent operations, and human escalation paths can help manage failures in complex workflows.</p><p>Not every application needs every mechanism. The right approach depends on the consequences of failure and the reliability requirements of the system.</p><p>But these decisions need to be made deliberately.</p><p>An agent should not be considered production-ready simply because its happy-path demonstration succeeds.</p><h3>The Most Important Question: How Do You Know Your Agent Is Actually Good?</h3><p>Perhaps the most consequential topic in the conversation was evaluation.</p><p>Evandro emphasized that organizations need to assess whether agents are accurately performing the tasks they were designed to complete.</p><p>This becomes especially important because evaluating agents is fundamentally different from checking whether a traditional application returned the expected output.</p><p>A conventional function might have a deterministic result.</p><p>Given the same input, it should return the same output.</p><p>An AI agent may generate different wording, choose different tool sequences, or follow alternative reasoning paths while still completing the task successfully.</p><p>This makes correctness harder to define.</p><h3>Why a convincing answer is not necessarily a correct answer</h3><p>Consider an AI-powered data analyst.</p><p>A user asks:</p><p><em>“What caused revenue to decline last quarter?”</em></p><p>The agent queries several datasets and produces a polished explanation.</p><p>It identifies regional underperformance, changing customer behavior, and reduced conversion rates.</p><p>The answer sounds plausible.</p><p>But was the underlying analysis correct?</p><p>Did the agent query the right tables? Did it apply the correct date filters? Did it confuse revenue with bookings? Did it overlook a missing dataset? Did it draw conclusions that the data could not support?</p><p>A fluent explanation can hide an incorrect analytical process.</p><p>This is why evaluating only the final response may be insufficient.</p><h3>What should an evaluation framework measure?</h3><p>A practical agent evaluation strategy can examine several dimensions.</p><p><strong>1. Task success</strong></p><p>Did the agent accomplish the user’s intended objective?</p><p>For a support agent, this might mean resolving the issue correctly rather than merely producing a helpful-sounding response.</p><p><strong>2. Tool-use correctness</strong></p><p>Did the agent select appropriate tools, provide valid arguments, and interpret their outputs correctly?</p><p>An agent that reaches the correct answer through unsafe or unauthorized tool execution may still represent a serious failure.</p><p><strong>3. Factual accuracy</strong></p><p>Are the agent’s conclusions supported by the available evidence?</p><p>This is particularly important in data analysis, financial workflows, and enterprise knowledge retrieval.</p><p><strong>4. Reliability under variation</strong></p><p>Does the agent perform consistently when user instructions are ambiguous, input data is incomplete, or external tools behave unexpectedly?</p><p><strong>5. Operational performance</strong></p><p>Does the workflow complete within acceptable latency and cost limits?</p><p>An agent may be accurate but operationally unsuitable if each task requires excessive model calls or takes too long to complete.</p><p>These dimensions are practical extensions of the evaluation challenge discussed by Evandro, rather than a formal framework he prescribed during the conversation.</p><p>Together, they demonstrate why evaluation cannot be treated as a final checkbox before deployment.</p><h3>Evaluation should continue after deployment</h3><p>A useful starting point is to build a representative test dataset containing realistic user requests, expected outcomes, and challenging edge cases.</p><p>Teams can run these evaluations before releasing changes to models, prompts, tools, or orchestration logic.</p><p>They can also monitor production outcomes to identify new failure patterns that were not represented in the original tests.</p><p>For example, an agent may initially perform well on straightforward requests but struggle when users begin asking multi-step questions that require combining information from several systems.</p><p>Those failures can become new evaluation cases.</p><p>Over time, the evaluation suite becomes a record of the problems the system must continue to solve.</p><p><strong>The goal is not to prove that an agent never fails. It is to make failures measurable, reproducible, and actionable.</strong></p><h3>Can Managed Infrastructure Solve the Production AI Problem?</h3><p>As the conversation turned toward production architecture, Evandro discussed his work with Amazon Bedrock AgentCore.</p><p>AgentCore is AWS’s managed platform for building and operating agentic applications.</p><p>Evandro explained that the team is focused on addressing the operational challenges enterprises encounter when taking agents into production.</p><p>The motivation is clear.</p><p>When organizations build their own agent platforms, they assume responsibility for infrastructure and operational capabilities that may sit outside their core business objectives.</p><p>They need to think about scaling, availability, monitoring, security, and integration with existing enterprise systems.</p><p>Managed services can reduce parts of that operational burden.</p><p>But there is an important distinction.</p><p><strong>Managed infrastructure can simplify operating an agent. It cannot automatically make the agent’s decisions correct.</strong></p><p>A platform may help teams manage execution environments and operational concerns, while application developers remain responsible for defining appropriate tool permissions, evaluating task outcomes, handling domain-specific failures, and ensuring that the system meets business requirements.</p><p>For engineering teams, the real architectural decision is therefore not simply whether to use a managed service.</p><p>It is determining which responsibilities should be delegated to the platform and which must remain within the application.</p><p>That distinction becomes especially important as agentic systems evolve from isolated experiments into shared enterprise capabilities.</p><h3>A Practical Production-Readiness Playbook for AI Engineers</h3><p>The challenges Evandro identified point toward a useful way to structure the journey from prototype to production.</p><p>Rather than treating deployment as a single milestone, engineering teams can approach it as a series of reliability decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuMzsPlsZoF88aUwfKx9qw.png" /><figcaption>Six engineering priorities for moving AI agents from working prototypes to reliable enterprise production systems.</figcaption></figure><p>The table is an editorial synthesis of the engineering themes raised in the conversation.</p><p>It also reveals something important about production AI.</p><p>These challenges are interconnected.</p><p>Reducing latency by switching to a smaller model may affect task accuracy. Adding more tool integrations may improve functionality while increasing security and observability requirements. Introducing retries may improve resilience but increase execution time and cost.</p><p>Every architectural decision creates trade-offs.</p><p>The objective is not to optimize a single metric in isolation.</p><p>It is to build a system that meets the combined reliability, performance, security, and business requirements of its intended environment.</p><h3>The Next Competitive Advantage in AI Won’t Be Better Demos</h3><p>The industry has made extraordinary progress in lowering the barrier to building AI agents.</p><p>Developers can now connect models to tools, retrieve enterprise information, orchestrate workflows, and create useful prototypes with relatively little infrastructure.</p><p>But that accessibility can create a misleading impression.</p><p>If an agent can be built quickly, it may appear that deploying it at scale should be equally straightforward.</p><p>Evandro’s observations suggest otherwise.</p><p>The difficult engineering work begins when the application must operate under real-world constraints.</p><p>It must serve many users, respect organizational boundaries, recover from failures, provide useful diagnostic information, control costs, and demonstrate that its outputs are sufficiently reliable for the tasks it performs.</p><p>In other words, agentic AI is encountering the same fundamental lesson that shaped earlier generations of enterprise software:</p><p><strong>A working feature is not the same as a reliable system.</strong></p><p>The most valuable AI engineering skills may increasingly involve everything surrounding the model — architecture, security, observability, resilience, performance optimization, and evaluation.</p><p>These capabilities are what transform an impressive demonstration into an application that an organization can responsibly depend on.</p><p>And that leads to the question every AI engineering team should ask before its next production release:</p><p><em>If your agent fails tomorrow, will you know what happened, why it happened, and how to prevent it from happening again?</em></p><p>If the answer is no, the next priority may not be a more powerful model.</p><p>It may be better engineering.</p><h3>About the expert</h3><p><a href="https://www.linkedin.com/in/evandrogfranco/"><strong>Evandro Franco</strong> is a Senior GenAI Data Scientist at Amazon Web Services (AWS)</a>, with approximately six years of experience at Amazon working in machine learning. His recent work has focused on Amazon Bedrock AgentCore and the operational challenges associated with enterprise agentic AI applications.</p><h3>About the conversation</h3><p>This article is adapted from an expert conversation between <strong>Evandro Franco</strong> and <strong>Nilesh Kowadkar of Packt</strong>, exploring enterprise GenAI adoption, production architecture, observability, scaling, security, and agent evaluation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293d5d926d21" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/production-ai-agent-engineering-solving-latency-reliability-and-observability-challenges-293d5d926d21">Production AI Agent Engineering: Solving Latency, Reliability, and Observability Challenges</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Kaggle Grandmaster’s Warning: Your Best Model Might Fail]]></title>
            <link>https://medium.com/packt-hub/a-kaggle-grandmasters-warning-your-best-model-might-fail-18fcb6e8f7f3?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/18fcb6e8f7f3</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 12:21:36 GMT</pubDate>
            <atom:updated>2026-10-22T12:21:36.049Z</atom:updated>
            <content:encoded><![CDATA[<h4>TRIPLE KAGGLE GRANDMASTER | LESSONS FROM PRODUCTION ML</h4><h4>Dr. Firat Gonen explains why leaderboard success doesn’t guarantee production reliability.</h4><p><em>From Kaggle leaderboards to real-world credit decisions, Dr. Firat Gonen reveals why building successful machine learning systems has less to do with sophisticated algorithms and more to do with data reliability, explainability, and engineering decisions that survive production.</em></p><p><strong>Expert:</strong> Dr. Firat Gonen, Independent Executive Advisor — AI &amp; Data Strategy, AlphaSights | Triple Kaggle Grandmaster<br><strong>In conversation with:</strong> Sanjana Gupta, Relationship Lead, Packt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWCjURtbAMKpOWsM-Kws6w.png" /></figure><h3>The Model Was Brilliant. The Production System Wasn’t.</h3><p>Imagine spending months building a machine learning model.</p><p>Your dataset is clean. Your features are carefully engineered. Your validation scores are impressive. The model consistently outperforms your baseline, and your team is confident it is ready for deployment.</p><p>Then it goes live.</p><p>A data pipeline breaks. An external API returns incomplete information. Customer behavior shifts. Predictions that looked reliable during testing begin to deteriorate.</p><p>Suddenly, the model that performed exceptionally well in development is struggling to make dependable decisions in the real world.</p><p><strong>What went wrong?</strong></p><p>Perhaps nothing was fundamentally wrong with the model.</p><p>The problem was everything surrounding it.</p><p>This is the uncomfortable reality of production machine learning: <strong>a highly accurate model is not necessarily a reliable business system.</strong></p><p>And few people understand that distinction better than Dr. Firat Gonen.</p><p>An AI and data strategy executive and triple Kaggle Grandmaster, Firat has worked across fintech, insurance, telecommunications, and retail, helping organizations move beyond experimental machine learning into systems that deliver measurable business value.</p><p>In a conversation with Packt’s Sanjana Gupta, he shared the engineering decisions, production failures, and practical lessons behind an AI-powered credit risk platform designed to evaluate thousands of small businesses every day.</p><p>His central argument challenges a common assumption in machine learning:</p><p><strong>The hardest part of ML is rarely training the model. It is building a system that continues making trustworthy decisions after deployment.</strong></p><h3>The Credit Scoring Problem Nobody Could Solve With Traditional Data</h3><p>Consider two businesses applying for financing.</p><p>The first is an established corporation with years of audited financial statements, credit bureau records, and predictable revenue.</p><p>The second is a growing small business with limited formal credit history, fluctuating cash flow, and a complex network of suppliers and customers.</p><p>Traditional credit scoring systems have a much easier time evaluating the first.</p><p>But does the absence of a lengthy financial history necessarily make the second business a bad credit risk?</p><p>Not at all.</p><p>That was the fundamental challenge Firat encountered while leading the development of an AI-driven risk scoring platform at Figopara, a Turkish fintech company focused on SME financing.</p><p>Small and medium-sized enterprises often lack the historical financial records that conventional credit models rely upon.</p><p>As Firat explained during the conversation, the core problem is <strong>information asymmetry</strong>.</p><p>Lenders need reliable evidence of creditworthiness, but traditional financial records may reveal only a fraction of how a small business actually operates.</p><p>A company might have limited credit bureau history while maintaining consistent supplier payments, healthy invoice growth, and dependable transaction relationships.</p><p>Traditional models can struggle to recognize these signals.</p><p>The solution was to rethink what constituted useful financial information.</p><p>Rather than relying exclusively on established credit indicators, Firat’s team developed a machine learning platform that incorporated alternative data sources.</p><p>These included:</p><ul><li><strong>Invoice flows:</strong> How invoices are generated, settled, and accumulated over time.</li><li><strong>Payment behavior:</strong> Patterns in how businesses meet financial obligations.</li><li><strong>Transaction networks:</strong> The relationships and interactions between businesses.</li><li><strong>Supplier relationships:</strong> Signals of commercial stability and dependency.</li><li><strong>Cash flow volatility:</strong> How financial activity changes across different periods.</li><li><strong>Sector behavior:</strong> How a company’s financial patterns compare with its industry.</li></ul><p>Individually, these signals might reveal only part of the picture.</p><p>Together, they could provide a richer representation of business health.</p><p>And this is where machine learning offered an advantage over conventional analytics.</p><h3>Why Traditional Analytics Wasn’t Enough</h3><p>Traditional credit models frequently depend on established financial ratios, historical defaults, and predefined decision rules.</p><p>These methods remain valuable, particularly when data is structured, consistent, and historically representative.</p><p>But small businesses do not always behave in ways that fit neatly into predefined categories.</p><p>A business might experience seasonal invoice growth, irregular payment cycles, and changing supplier relationships without necessarily becoming less creditworthy.</p><p>Another might report relatively stable financial figures while its transaction network reveals growing vulnerabilities.</p><p>Capturing these relationships requires looking beyond isolated financial indicators.</p><p>Machine learning can identify nonlinear interactions between variables, allowing models to recognize patterns that simpler rule-based systems may overlook.</p><p>For example, cash flow volatility might carry a different risk implication depending on the company’s sector, payment history, and supplier network.</p><p>The challenge is not merely identifying whether a variable has increased or decreased.</p><p>It is understanding how several variables interact to influence risk.</p><p>Firat’s team built hundreds of behavioral and financial features to capture these relationships.</p><p>The platform was designed to evaluate financing applications at scale, typically scoring thousands of SMEs daily.</p><p>But as the system grew, a more difficult question emerged.</p><p><strong>How do you turn hundreds of useful predictive signals into a system that lenders, engineers, and regulators can actually trust?</strong></p><p>That question would shape nearly every architectural decision.</p><h3>The Architecture: Building a Decision System, Not Just a Model</h3><p>One of the most revealing moments in the conversation came when Sanjana asked Firat to walk through the system’s architecture.</p><p>His explanation showed how far a production ML application extends beyond model training.</p><p>The platform needed to collect information from multiple sources, transform that information into usable features, generate predictions quickly, and integrate the results into real financing decisions.</p><p>Its architecture followed a practical end-to-end workflow.</p><h3>1. Data ingestion: Bringing fragmented information together</h3><p>The first challenge was collecting data from internal transaction databases, invoice platforms, bank integrations, and external financial providers.</p><p>Each system had its own data structures, update patterns, and integration requirements.</p><p>This created an immediate reliability problem.</p><p>Even the most sophisticated prediction model cannot function consistently when its input data is missing, delayed, or incorrectly processed.</p><p>Firat identified data integration as one of the most difficult aspects of the entire project.</p><p>The team needed to combine fragmented information into a dependable foundation before meaningful predictions could be generated.</p><h3>2. Centralized storage and feature engineering</h3><p>Once ingested, the information flowed into a centralized data warehouse.</p><p>A feature engineering layer then transformed the raw information into hundreds of financial and behavioral indicators.</p><p>These features represented the underlying signals that the risk models would use.</p><p>But feature engineering introduced another trade-off.</p><p>More features could potentially improve predictive performance.</p><p>They could also create more dependencies, greater maintenance requirements, and additional opportunities for data failures.</p><p>A feature that improves offline accuracy but frequently fails during live scoring may ultimately make the production system less useful.</p><h3>3. Model training: Choosing practicality over complexity</h3><p>The team experimented with supervised learning approaches, with gradient boosting models forming an important part of the solution.</p><p>These models were particularly well suited to structured financial data.</p><p>Rather than pursuing architectural complexity for its own sake, the team focused on models that offered strong predictive performance while remaining operationally manageable.</p><h3>4. Real-time scoring and business integration</h3><p>The trained models were exposed through an API layer and integrated into the company’s financial decision engine.</p><p>When an SME applied for financing, the system could generate the necessary features and produce a risk score as part of the decision process.</p><p>This made latency an important architectural constraint.</p><p>A risk model might be extremely accurate, but if it takes too long to return a result during an application, it can become an operational bottleneck.</p><h3>5. Monitoring, drift detection, and retraining</h3><p>Finally, the platform monitored model performance, changing data patterns, and portfolio outcomes.</p><p>This was especially important because the Turkish financial market could experience significant volatility.</p><p>A model trained on historical business behavior could gradually become less reliable as economic conditions changed.</p><p>Monitoring and retraining therefore became essential parts of maintaining the system.</p><p>Firat described the result as something much bigger than a machine learning model.</p><p>He called it an <strong>entire decision infrastructure</strong>.</p><p>That distinction matters.</p><p>The model produces a prediction.</p><p>The surrounding infrastructure determines whether that prediction arrives on time, reflects current conditions, can be explained, and is useful enough to influence a financial decision.</p><h3>The Trade-Off Most ML Teams Eventually Face: Accuracy vs. Explainability</h3><p>What if a more sophisticated model delivers slightly better predictions but nobody can adequately explain its decisions?</p><p>For many ML applications, that question is inconvenient.</p><p>For financial services, it can become a serious operational and regulatory concern.</p><p>Credit decisions must be understandable to risk teams, management, and regulators.</p><p>A lender cannot simply rely on a complex prediction without being able to investigate the factors influencing it.</p><p>This constraint influenced Firat’s modeling strategy.</p><p>Deep neural networks were a possible option, but their additional complexity did not necessarily justify the explainability challenges for this particular structured-data problem.</p><p>Instead, the team prioritized gradient boosting models and used SHAP-based interpretation techniques to understand the contributions of different features.</p><p>SHAP can help explain why a model assigns a particular prediction by estimating how individual features contribute to its output.</p><p>That does not automatically make a model fair, compliant, or causally interpretable.</p><p>But it provides a useful layer of transparency for investigating predictions and communicating model behavior.</p><p>The team’s philosophy was straightforward:</p><p><strong>A small improvement in predictive accuracy may not be worth sacrificing the reliability and transparency required to operate the model responsibly.</strong></p><p>There was another practical consideration.</p><p>The project was developed in a startup environment where budgets mattered.</p><p>Rather than investing heavily in proprietary tooling, the team relied on Python and open-source machine learning libraries.</p><p>This was not simply about reducing expenses.</p><p>It was about choosing technology that matched the problem.</p><p>Structured financial data did not automatically require deep learning architectures designed for images, audio, or other complex inputs.</p><p>For this use case, tree-based models offered a compelling balance between predictive power, interpretability, and operational simplicity.</p><p>The lesson for ML engineers is important.</p><p><strong>The best architecture is not necessarily the most advanced one. It is the architecture that satisfies the real constraints of the business.</strong></p><h3>The Failure That Changed How the Team Thought About Monitoring</h3><p>Even with a carefully designed architecture, the system encountered a familiar production problem.</p><p>Data drift.</p><p>In the early versions of the platform, the team observed that some financial and behavioral features began behaving differently during periods of market volatility.</p><p>The model had learned relationships from historical information.</p><p>But the underlying economic environment was changing.</p><p>Payment behavior shifted. Financial patterns evolved. Relationships that had previously been predictive became less dependable.</p><p>The result was a modest degradation in predictive performance.</p><p>This exposed an important limitation of conventional model development.</p><p>A model can be trained correctly, validated carefully, and deployed successfully while still becoming less reliable over time.</p><p>The problem is not necessarily a coding error.</p><p>It may be that the world the model learned from no longer behaves in the same way.</p><p>For Firat’s team, this meant revisiting how training data was selected, how validation was performed, and how models were monitored and retrained.</p><p>It also raised a deeper question.</p><p><strong>How do you know when an ML system is failing before that failure becomes a business problem?</strong></p><h3>Technical metrics tell only half the story</h3><p>Most machine learning teams are comfortable monitoring technical measures such as precision, recall, or F1 score.</p><p>These metrics help evaluate how well a model performs against labeled outcomes.</p><p>But they are not always meaningful to the people responsible for business decisions.</p><p>A risk manager may not immediately understand the operational significance of a change in F1 score.</p><p>A collections team is more likely to care whether the platform is identifying risky accounts effectively.</p><p>Leadership may want to understand whether automated decisions are reducing manual workloads while maintaining acceptable portfolio outcomes.</p><p>Firat emphasized the need to connect technical performance with business-oriented measures.</p><p>In practice, this means evaluating models through two complementary lenses.</p><p><strong>Technical performance:</strong> Is the model still producing accurate, stable, and useful predictions?</p><p><strong>Business performance:</strong> Are those predictions improving the decisions and outcomes the organization actually cares about?</p><p>Neither perspective is sufficient on its own.</p><p>A model might perform well on a technical metric while creating operational friction.</p><p>Conversely, an apparently healthy business metric might conceal a deteriorating model that has not yet produced visible downstream consequences.</p><p>Production monitoring becomes more valuable when both perspectives are considered together.</p><h3>What Actually Improved After Deployment?</h3><p>The most important outcome of the project was not simply a better prediction score.</p><p>It was a more scalable financing decision process.</p><p>According to Firat, the platform improved the company’s ability to predict SME credit risk and automated substantial portions of the evaluation workflow.</p><p>That reduced manual review requirements, helped limit human errors, and allowed the company to evaluate many applications in parallel.</p><p>It also supported broader access to financing for small businesses that were difficult to assess through traditional credit models.</p><p>Firat did not provide a specific percentage improvement in default prediction accuracy or a quantified reduction in manual processing during the interview.</p><p>But he emphasized the operational shift.</p><p>A human analyst can review a limited number of applications at a time.</p><p>A properly engineered decision platform can process many applications concurrently, while applying consistent scoring logic and retaining the ability to monitor outcomes.</p><p>This illustrates a critical difference between a successful ML experiment and a successful ML product.</p><p>The experiment demonstrates predictive capability.</p><p>The product converts that capability into a repeatable business process.</p><p>And the value comes not only from making better predictions, but also from making useful decisions faster, more consistently, and at greater scale.</p><h3>The Kaggle Paradox: Why Winning Models Can Fail in a Week</h3><p>Perhaps the most surprising insight came when the conversation turned to Firat’s experience as a triple Kaggle Grandmaster.</p><p>Kaggle is one of the world’s best-known platforms for competitive machine learning, bringing together practitioners who compete to solve difficult prediction problems.</p><p>Firat has spent years participating in that community, learning modeling techniques, studying other competitors’ solutions, and improving his ability to extract performance from data.</p><p>But he was quick to distinguish competition success from production engineering.</p><p>In a typical machine learning competition, participants receive a defined dataset.</p><p>The objective is clear.</p><p>The evaluation metric is established.</p><p>And the challenge is to build a model that achieves the strongest possible predictive performance.</p><p>Competitors may spend enormous effort improving results by tiny margins.</p><p>Production environments are fundamentally different.</p><p>Datasets are not necessarily clean.</p><p>Inputs are not static.</p><p>APIs fail.</p><p>Business requirements change.</p><p>Stakeholders need explanations.</p><p>And a model’s usefulness depends on much more than its leaderboard performance.</p><p>Firat summarized the difference with a striking observation:</p><blockquote><em>“A model that can win a Kaggle competition, it may not survive one week in production.”</em></blockquote><p>Consider what happens when a highly optimized model depends on a feature that becomes unavailable.</p><p>Or when its input distribution changes unexpectedly.</p><p>Or when its predictions cannot be explained to the people making the final business decisions.</p><p>None of those problems necessarily appears in an offline competition.</p><p>Yet any one of them can undermine a production deployment.</p><p>This does not diminish the value of competitive machine learning.</p><p>Firat credits Kaggle with strengthening his modeling foundations and teaching him to learn from talented practitioners.</p><p>But it highlights a distinction that every aspiring ML engineer should understand.</p><p><strong>Competition teaches you how to build a stronger model. Production teaches you how to build a system that can survive.</strong></p><h3>If He Built the System Again Today, What Would Change?</h3><p>Looking back, Firat identified several improvements he would consider if he were rebuilding the platform.</p><p>The first would be investing earlier in a more mature machine learning platform layer.</p><p>That would include capabilities such as automated feature storage, model registries, version management, and stronger monitoring infrastructure.</p><p>These tools become increasingly important as an organization moves from managing one model to operating multiple models across different business processes.</p><p>Without consistent infrastructure, teams can struggle to track which model is deployed, which features it uses, how its performance has changed, and when it should be retrained.</p><p>A more mature platform helps make these operations systematic rather than dependent on individual engineers.</p><h3>Where would LLMs fit?</h3><p>Firat also sees opportunities for large language models to help process unstructured financial information.</p><p>For example, LLM-based components could potentially extract relevant information from financial reports, documents, and other text-heavy sources.</p><p>That information could then complement the structured financial features used in conventional risk models.</p><p>The opportunity is not necessarily to replace a reliable credit scoring model with a generative AI system.</p><p>It is to use newer AI capabilities where they solve a specific data-processing problem.</p><p>For a regulated financial application, extracted information would still require appropriate validation, governance, and integration before influencing decisions.</p><p>This reflects the same principle that guided the original platform.</p><p>Use the technology that solves the problem, rather than redesigning the problem around the newest technology.</p><p>And despite the advances in ML platforms and generative AI, Firat believes the fundamentals remain unchanged.</p><p>Successful machine learning systems require dependable data infrastructure, sound modeling decisions, and close collaboration with the business.</p><h3>The Next Generation of ML Engineers Will Need More Than Modeling Skills</h3><p>As the conversation approached its conclusion, Sanjana asked a forward-looking question.</p><p>What skill will define the strongest applied machine learning engineers over the next three years?</p><p>Firat’s answer was not a particular framework, model architecture, or programming language.</p><p>It was the ability to combine foundational machine learning knowledge with automation and production engineering skills.</p><p>The distinction between a data scientist and an ML engineer is becoming increasingly important.</p><p>Knowing how to train a model remains valuable.</p><p>But organizations also need practitioners who understand how models interact with data systems, software infrastructure, operational processes, and business requirements.</p><p>An engineer who can produce a convincing prototype has solved only part of the challenge.</p><p>An engineer who can turn that prototype into a reliable production component brings a different level of value.</p><p>Firat also stressed the importance of understanding what happens beneath the abstractions.</p><p>It is easy to import a library, call a model, or integrate an AI service.</p><p>It is much harder to diagnose a failure when the underlying mechanism is poorly understood.</p><p>As automation makes model development more accessible, that deeper understanding may become even more important.</p><p>The engineers who stand out will be those who can explain not only what their systems produce, but also how they work, why they fail, and how to make them dependable.</p><h3>Five Lessons for Anyone Building Production ML Systems</h3><p>Firat’s experience offers a practical framework for ML practitioners navigating the transition from experimentation to production.</p><p><strong>1. Design around the decision, not the algorithm.</strong><br>Start by understanding what the business needs to decide, what information is available, and what constraints the system must satisfy. Model selection should follow those requirements.</p><p><strong>2. Treat data pipelines as critical infrastructure.</strong><br>An accurate model cannot compensate for unreliable inputs. Data ingestion, integration, feature consistency, and API reliability deserve as much attention as model development.</p><p><strong>3. Optimize for explainability and operational stability.</strong><br>Additional complexity is justified only when its benefits outweigh the cost of maintaining, explaining, and governing the system.</p><p><strong>4. Monitor changing behavior, not just model availability.</strong><br>A model can remain technically operational while becoming less accurate. Track changing data patterns, prediction quality, and relevant business outcomes.</p><p><strong>5. Measure success through real-world impact.</strong><br>Offline accuracy matters, but so do decision speed, operational efficiency, stakeholder trust, and the ability to maintain performance as conditions change.</p><p>These principles are relevant far beyond credit scoring.</p><p>They apply to fraud detection, customer churn prediction, demand forecasting, recommendation systems, insurance analytics, and many other applications where machine learning influences real decisions.</p><h3>The Real Competitive Advantage Isn’t a Better Model</h3><p>The machine learning industry has become remarkably good at building models.</p><p>Powerful open-source libraries, pretrained architectures, automated experimentation tools, and increasingly accessible compute have reduced many of the barriers to developing sophisticated predictions.</p><p>But building models has never been the entire challenge.</p><p>The harder problem is making them useful under real-world conditions.</p><p>Firat’s SME financing platform demonstrates what happens when machine learning is approached as an engineering and business discipline rather than an isolated modeling exercise.</p><p>The team did not simply train a risk classifier.</p><p>It brought fragmented data together, engineered meaningful financial signals, selected interpretable algorithms, integrated predictions into live financing workflows, and adapted the system as market behavior changed.</p><p>The result was a platform that helped improve risk evaluation while supporting faster, more scalable financing decisions.</p><p>And perhaps the most valuable insight is that none of this depended on using the most complex model available.</p><p>It depended on making the right engineering trade-offs.</p><p>For ML practitioners, the question worth asking is no longer just:</p><p><em>How accurate can I make this model?</em></p><p>It is:</p><p><strong>Can I build a system that continues delivering trustworthy decisions when the data changes, the APIs fail, the business scales, and the real world refuses to behave like my training dataset?</strong></p><p>That is where machine learning stops being an experiment and starts becoming valuable infrastructure.</p><p><em>This article is adapted from an expert conversation hosted by Sanjana Gupta at Packt with Dr. Firat Gonen, Independent Executive Advisor — AI &amp; Data Strategy at AlphaSights and triple Kaggle Grandmaster. The discussion explores production machine learning, SME credit risk modeling, explainability, data drift, architectural trade-offs, and the evolving skills required of applied ML engineers.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18fcb6e8f7f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/a-kaggle-grandmasters-warning-your-best-model-might-fail-18fcb6e8f7f3">A Kaggle Grandmaster’s Warning: Your Best Model Might Fail</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding More AI Agents Won’t Fix Your Workflow. Here’s What Might.]]></title>
            <link>https://medium.com/packt-hub/adding-more-ai-agents-wont-fix-your-workflow-here-s-what-might-1106ee6095f2?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/1106ee6095f2</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 09:08:30 GMT</pubDate>
            <atom:updated>2026-10-13T09:13:53.859Z</atom:updated>
            <content:encoded><![CDATA[<h4>THE MULTI-AGENT RELIABILITY PROBLEM</h4><h4>Somil Rastogi, Principal Solutions Architect at SAS, joins Deepesh Patel, Relationship Lead at Packt, to explore why multi-agent AI systems become harder to control as they scale, and how better orchestration, shared context, and architectural decisions can turn promising prototypes into reliable enterprise applications.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ausE2StiQaXAKUzYQmcWRw.png" /></figure><p>Imagine you’ve built three AI agents.</p><p>The first retrieves information from your enterprise knowledge base. The second analyzes it and recommends an action. The third executes that action through a connected business application.</p><p>Individually, each agent performs well. Your tests pass. The demo impresses stakeholders.</p><p>Then you connect them.</p><p>Suddenly, the retrieval agent returns incomplete context. The analysis agent confidently fills in the gaps. The execution agent acts on that recommendation before anyone notices the problem.</p><p><strong>Three capable agents. One unreliable system.</strong></p><p>This is the uncomfortable reality behind the excitement surrounding multi-agent AI. While frameworks are making it easier to build autonomous agents, getting those agents to collaborate reliably introduces an entirely different class of engineering problems.</p><p>And those problems become significantly more serious when agents move beyond generating responses and begin interacting with enterprise data, business workflows, and production systems.</p><p>In a Packt expert conversation hosted by <strong>Deepesh Patel, Relationship Lead at Packt</strong>, <strong>Somil Rastogi, Principal Solutions Architect at SAS</strong>, brings an enterprise architecture perspective to the challenge of designing multi-agent AI systems.</p><p>The discussion centres on a question that every AI engineer and solution architect should be asking:</p><p><strong>If individual agents are becoming more intelligent, why does the architecture connecting them remain so difficult to get right?</strong></p><p>To understand the answer, we need to look beyond models and prompts and examine what actually happens when autonomous components must work together.</p><h3>1. Why Adding More Agents Doesn’t Necessarily Make Your System Smarter</h3><p>The appeal of multi-agent AI is easy to understand.</p><p>Instead of relying on a single model to perform an entire workflow, developers can assign specialized responsibilities to different agents.</p><p>One agent handles research. Another performs analysis. A third plans actions. A fourth verifies the results.</p><p>It resembles the way human teams divide responsibilities.</p><p>But there’s a critical difference.</p><p>Human teams rely on shared understanding, established processes, accountability, and the ability to clarify ambiguous instructions.</p><p>AI agents don’t automatically possess these coordination mechanisms.</p><p>They operate within the information, tools, permissions, and instructions their architecture provides.</p><p>Consider a financial research application.</p><p>A data retrieval agent collects market information. A forecasting agent generates projections. A reporting agent produces an executive summary.</p><p>What happens if the retrieval agent provides outdated financial data?</p><p>The forecasting agent might generate a mathematically valid prediction using incorrect inputs. The reporting agent could then present that prediction as a credible business insight.</p><p>Each component may appear to have completed its assigned task successfully.</p><p>Yet the overall system has failed.</p><p>This is one of the most important distinctions in multi-agent engineering:</p><p><strong>Individual agent performance and end-to-end system reliability are not the same thing.</strong></p><p>The architecture must account for what happens between agents, not just what happens inside them.</p><p>That includes how tasks are delegated, how outputs are validated, how context is transferred, and how the system responds when an agent makes a mistake.</p><p>For enterprise architects, the challenge is not simply creating more specialized agents.</p><p>It is establishing the mechanisms that allow those agents to behave as a coherent, dependable system.</p><h3>2. The Orchestration Problem: Who Decides What Happens Next?</h3><p>Suppose a customer asks an AI-powered financial assistant to analyze their portfolio, identify potential risks, and recommend adjustments.</p><p>The request involves several activities.</p><p>The system must retrieve portfolio information, analyze market exposure, evaluate risk, and generate a recommendation.</p><p>But who decides which agent performs each task?</p><p>Who determines whether the output is good enough to proceed?</p><p>And what happens when two agents disagree?</p><p>This is where orchestration becomes central to multi-agent architecture.</p><p>There are several ways to coordinate agents, each with different implications for reliability and control.</p><h3>A central supervisor controls the workflow</h3><p>In a supervisor architecture, one coordinating component delegates tasks to specialized agents.</p><p>For example, a supervisor might send a research task to one agent, pass its output to an analytical agent, and then request validation before producing a final response.</p><p>This provides a relatively clear execution structure.</p><p>It also gives developers a central point for enforcing workflow rules.</p><p>However, it introduces a dependency on the supervisor’s decisions. If the supervisor routes tasks incorrectly or fails to recognize an invalid result, the entire workflow can be affected.</p><h3>Agents operate in a predefined sequence</h3><p>A sequential architecture works more like a production line.</p><p>Each agent completes a defined task and passes its output to the next stage.</p><p>This can be effective for document processing, reporting, and other workflows where the order of operations is predictable.</p><p>But it also means that an early mistake can influence every subsequent step.</p><p>Without intermediate validation, errors can travel through the workflow unnoticed.</p><h3>Agents collaborate dynamically</h3><p>More flexible architectures allow agents to communicate, exchange information, and decide how to approach a task.</p><p>This can be valuable for complex research or planning problems where the next step cannot always be determined in advance.</p><p>However, flexibility introduces uncertainty.</p><p>Agents may repeat work, disagree over responsibilities, or enter unnecessary communication loops.</p><p>The result can be higher costs, longer execution times, and more difficult debugging.</p><p>The architectural decision therefore depends on the nature of the problem.</p><p><strong>The goal isn’t to maximize agent autonomy. It’s to introduce enough autonomy to solve the problem while retaining control over how the solution is produced.</strong></p><p>For developers, this means choosing orchestration patterns based on business requirements rather than selecting the most sophisticated framework available.</p><h3>3. Your Agents May Be Sharing Information, but Are They Sharing the Same Context?</h3><p>One of the less obvious challenges in multi-agent systems is maintaining a consistent understanding of the task.</p><p>Imagine an insurance claims application with three agents.</p><p>The first extracts information from a submitted claim. The second checks policy eligibility. The third recommends the next action.</p><p>Now imagine the policy information changes between the second and third stages.</p><p>The eligibility agent may be operating on an older version of the policy, while the recommendation agent has access to newer information.</p><p>Both agents could produce reasonable outputs based on what they know.</p><p>But the system may arrive at an inconsistent decision.</p><p>This is not primarily a language-model problem.</p><p>It is a data consistency and state-management problem.</p><p>As multi-agent applications become more sophisticated, developers must decide what information agents should share, where that information should be stored, and which source should be considered authoritative.</p><h3>Shared memory isn’t the same as reliable memory</h3><p>Giving agents access to a common memory store might seem like an obvious solution.</p><p>But shared memory introduces questions of its own.</p><p>What information should be retained?</p><p>Which agent can update it?</p><p>How are conflicting updates resolved?</p><p>What happens when stored information becomes outdated?</p><p>And how can developers distinguish between verified enterprise data and an interpretation generated by another agent?</p><p>These distinctions matter because an agent-generated summary is not necessarily equivalent to an authoritative business record.</p><p>For example, a customer-support agent might summarize a previous interaction as “the customer is eligible for a refund.”</p><p>But that summary should not automatically override the organization’s actual refund policy or transaction history.</p><p>A more dependable architecture separates temporary conversational context from persistent business state and authoritative data sources.</p><p>It also defines explicit rules for reading, updating, and validating shared information.</p><p><strong>The important question isn’t how much information an agent can remember. It’s whether the agent is using the correct information when making a decision.</strong></p><p>This becomes especially important in enterprise environments where agents interact with databases, analytics platforms, document repositories, and continuously changing operational systems.</p><h3>4. The Enterprise Data Problem: An Agent Is Only as Reliable as the Information It Uses</h3><p>One of the biggest differences between an impressive AI prototype and a production-ready enterprise application is the environment in which it operates.</p><p>A prototype might use a small collection of documents and a few carefully designed examples.</p><p>A production application may need to work across thousands of documents, multiple databases, legacy systems, internal APIs, and business-specific access policies.</p><p>The difficulty is not simply retrieving information.</p><p>It is retrieving the right information, interpreting it correctly, and using it within the appropriate business context.</p><p>Consider a multi-agent system designed to support enterprise risk analysis.</p><p>One agent retrieves operational data. Another analyzes historical patterns. A third evaluates potential risks. A fourth prepares recommendations.</p><p>If the underlying data is incomplete or inconsistent, the system may produce convincing but misleading conclusions.</p><p>Adding more reasoning agents does not fix unreliable source data.</p><p>In fact, it can make the problem harder to detect because each agent may transform the original information before passing it downstream.</p><p>This is where techniques such as retrieval-augmented generation, structured data access, metadata management, and deterministic validation become important.</p><p>Rather than allowing agents to rely entirely on generated interpretations, architects can connect them to governed enterprise information sources.</p><p>For example:</p><ul><li>A retrieval agent can locate relevant documents and preserve source references.</li><li>An analytical component can execute structured queries against validated datasets.</li><li>A policy engine can evaluate deterministic business rules.</li><li>A reasoning agent can interpret the combined evidence and explain the result.</li><li>A validation component can check whether the proposed action satisfies the required constraints.</li></ul><p>These responsibilities do not necessarily require five separate LLM-powered agents.</p><p>Some may be better implemented as conventional software services.</p><p>That distinction is essential.</p><p><strong>Not every intelligent workflow component needs to be an AI agent. Sometimes the most reliable part of an agentic architecture is the part that doesn’t use an LLM at all.</strong></p><p>The practical solution is to combine probabilistic reasoning with deterministic systems wherever correctness and accountability matter.</p><h3>5. When an Agent Makes a Mistake, How Does the System Know?</h3><p>Traditional software applications are generally built around defined execution paths.</p><p>Developers know which functions are called, what inputs they expect, and how failures should be handled.</p><p>Agentic systems introduce more variability.</p><p>An agent may choose a different tool, interpret an instruction differently, or generate an unexpected intermediate result.</p><p>In a multi-agent workflow, that variability can influence the behaviour of other agents.</p><p>Consider an automated incident investigation system.</p><p>A monitoring agent detects an anomaly.</p><p>A diagnostic agent investigates potential causes.</p><p>A remediation agent recommends corrective action.</p><p>What happens if the diagnostic agent incorrectly identifies the root cause?</p><p>Should the remediation agent proceed?</p><p>Should another component verify the diagnosis?</p><p>Should the system request human approval?</p><p>These questions reveal why validation and failure recovery need to be built into the architecture.</p><h3>A successful response isn’t enough</h3><p>Many AI applications are evaluated primarily on whether they produce a correct final answer.</p><p>For multi-agent systems, that approach is incomplete.</p><p>A workflow might produce the correct answer while making unnecessary tool calls, ignoring a required validation step, or exposing information to an agent that should not have access to it.</p><p>Conversely, a workflow might fail to complete a task but correctly recognize the failure and escalate it to a human.</p><p>From an enterprise perspective, that second outcome may be preferable to an incorrect autonomous action.</p><p>Evaluation therefore needs to consider more than answer quality.</p><p>Developers should examine whether agents perform their assigned responsibilities correctly, whether information is transferred accurately, whether tools are used appropriately, and whether the overall workflow satisfies business requirements.</p><p>The system should also make failures observable.</p><p>Engineers need to understand which agent acted, what information it received, which tools it called, and why the workflow reached a particular outcome.</p><p>This requires tracing and logging across the entire agent execution process.</p><p>Without that visibility, debugging becomes difficult because the source of an error may be several agent interactions away from the final result.</p><p><strong>A reliable multi-agent system isn’t one that never fails. It’s one that can detect failures, contain their impact, and recover without creating a larger problem.</strong></p><h3>6. More Agents, More Tokens, More Latency: The Economics of Multi-Agent AI</h3><p>There is another consequence of multi-agent architecture that often becomes visible only after deployment.</p><p>Cost.</p><p>Every agent interaction can introduce additional model inference, context processing, retrieval operations, and tool execution.</p><p>A workflow that appears simple from the user’s perspective may involve multiple rounds of internal communication.</p><p>Imagine a research agent collecting information, a planning agent reviewing it, and a validation agent requesting revisions.</p><p>The research agent retrieves more information.</p><p>The planning agent updates its recommendation.</p><p>The validation agent requests another check.</p><p>The process repeats.</p><p>While each interaction may be relatively inexpensive, the cumulative cost can grow quickly.</p><p>Latency becomes another concern.</p><p>A user asking a straightforward question may not be willing to wait while several agents exchange messages and repeatedly reconsider their decisions.</p><p>This creates a practical engineering trade-off.</p><p>More agent collaboration may improve certain complex outcomes, but it can also increase processing time and operational cost.</p><p>The solution is not necessarily to reduce every workflow to a single agent.</p><p>It is to make autonomy selective.</p><p>Developers can establish limits on retries, define clear termination conditions, use smaller models for simpler tasks, and route predictable operations through conventional software.</p><p>They can also evaluate whether an additional agent produces a measurable improvement in task success.</p><p>If it doesn’t, that agent may be adding complexity without adding value.</p><p><strong>The most sophisticated multi-agent system is not necessarily the most effective one. The better architecture is the one that achieves the required outcome with acceptable reliability, latency, and cost.</strong></p><h3>7. The Security Challenge Changes When Agents Can Take Action</h3><p>An AI assistant that generates an incorrect response can create confusion.</p><p>An autonomous agent that executes an incorrect action can create operational consequences.</p><p>This difference becomes critical when agents gain access to enterprise systems.</p><p>Imagine an agent responsible for reviewing customer accounts.</p><p>It may need permission to retrieve account information and identify discrepancies.</p><p>But should it be allowed to modify account balances?</p><p>Should a procurement agent be able to approve purchases?</p><p>Should a data-analysis agent have permission to update production databases?</p><p>These decisions cannot safely depend on an LLM interpreting instructions correctly every time.</p><p>They require enforceable security controls.</p><p>A well-designed agentic architecture limits each agent’s permissions to the operations necessary for its role.</p><p>It also separates recommendations from actions that carry significant business consequences.</p><p>For example, an agent may be permitted to prepare a payment recommendation but require an authorized employee to approve the transaction.</p><p>Similarly, an agent can identify a potentially suspicious claim without automatically rejecting it.</p><p>This approach allows organizations to benefit from automation while maintaining control over sensitive operations.</p><p>Another concern is the trustworthiness of external information.</p><p>Agents frequently retrieve documents, websites, messages, and tool outputs.</p><p>Those sources may contain misleading or malicious instructions.</p><p>If an agent treats retrieved content as authoritative instructions, an attacker may be able to influence its behaviour.</p><p>Architectures therefore need to distinguish between information the agent should analyze and instructions the agent is authorized to follow.</p><p>The underlying principle is straightforward:</p><p><strong>An agent’s ability to reason about an action should never be confused with its authority to perform that action.</strong></p><p>As multi-agent systems become more deeply integrated into enterprise workflows, this distinction will become increasingly important.</p><h3>8. Do You Really Need a Multi-Agent System?</h3><p>After exploring orchestration, shared memory, validation, cost, and security, one question deserves particular attention.</p><p>What if the best solution is not a multi-agent system at all?</p><p>The growing popularity of agentic AI frameworks can encourage developers to break every workflow into multiple autonomous components.</p><p>But distributing work across agents introduces communication overhead and new failure modes.</p><p>For many applications, a single agent with well-designed tools may be sufficient.</p><p>For others, a deterministic workflow with one reasoning component may offer better reliability.</p><p>Multi-agent systems become more valuable when a problem genuinely requires specialized reasoning, independent subtasks, different tool permissions, or coordinated analysis across multiple domains.</p><p>Consider two examples.</p><p><strong>Scenario A: Summarizing a customer support ticket</strong></p><p>The application retrieves the ticket, examines relevant support history, and generates a summary.</p><p>A single agent with retrieval capabilities may be enough.</p><p>Introducing separate retrieval, interpretation, summarization, and review agents could increase complexity without meaningfully improving the result.</p><p><strong>Scenario B: Investigating a complex enterprise security incident</strong></p><p>The application must examine logs, correlate alerts, investigate potential causes, evaluate remediation options, and produce an auditable recommendation.</p><p>Here, specialized components may offer meaningful advantages because the task involves distinct capabilities, tools, and validation requirements.</p><p>Even in this scenario, the architecture should determine which responsibilities need autonomous reasoning and which can be handled by deterministic services.</p><p>The key is to start with the problem rather than the framework.</p><p>Before adding another agent, developers should be able to explain what unique responsibility it performs, why that responsibility benefits from autonomous reasoning, and how its performance will be evaluated.</p><p>If those questions cannot be answered, the additional agent may not be necessary.</p><h3>9. What Does a Production-Ready Multi-Agent Architecture Actually Need?</h3><p>For engineering teams moving from prototypes to enterprise deployment, the practical challenge is translating these principles into a repeatable architecture.</p><p>A production-ready system needs several capabilities working together.</p><p><strong>Clear task boundaries</strong></p><p>Each agent should have a defined responsibility, with explicit expectations for its inputs, outputs, and available tools.</p><p><strong>Controlled orchestration</strong></p><p>The workflow should establish how tasks are assigned, when agents can act, and what conditions trigger retries, escalation, or termination.</p><p><strong>Reliable context management</strong></p><p>Agents need access to relevant information without losing track of authoritative data, shared state, or previous decisions.</p><p><strong>Governed tool access</strong></p><p>Permissions should be enforced outside the model, particularly when agents interact with sensitive data or execute business actions.</p><p><strong>Validation and evaluation</strong></p><p>The architecture should check intermediate outputs and assess both individual agent performance and end-to-end workflow outcomes.</p><p><strong>Operational observability</strong></p><p>Engineers should be able to inspect agent decisions, trace tool calls, measure latency, and identify the source of failures.</p><p><strong>Cost and resource controls</strong></p><p>The system should limit unnecessary interactions and use the appropriate level of model capability for each task.</p><p>These requirements may sound familiar to experienced software architects.</p><p>That’s because many of the hardest multi-agent AI challenges resemble problems that distributed systems engineering has been addressing for years.</p><p>State management, fault tolerance, access control, observability, and coordination are not new concerns.</p><p>What changes with agentic AI is that some components make probabilistic decisions rather than following entirely predetermined execution paths.</p><p>That makes architectural discipline more important, not less.</p><h3>10. The Next Phase of Agentic AI Is About Trust, Not Just Autonomy</h3><p>The excitement surrounding agentic AI often focuses on increasingly autonomous systems that can plan, reason, and act with minimal human involvement.</p><p>But enterprise adoption depends on something more fundamental.</p><p>Trust.</p><p>Organizations need confidence that an AI system will use appropriate information, follow business policies, respect permissions, and behave predictably enough to operate within critical workflows.</p><p>That does not mean every decision must be deterministic.</p><p>It means the surrounding architecture must establish clear boundaries for autonomous behaviour.</p><p>For some applications, agents may be trusted to complete tasks independently.</p><p>For others, the appropriate role of an agent may be to gather evidence, analyze alternatives, and recommend an action for human approval.</p><p>The right level of autonomy depends on the consequences of failure.</p><p>An agent that organizes internal research documents presents a different risk profile from one that initiates financial transactions or modifies customer records.</p><p>Treating both systems as equally autonomous simply because the technology permits it would be a mistake.</p><p>The more useful question is how much autonomy produces meaningful value without introducing unacceptable operational risk.</p><p>This is where enterprise architecture becomes the foundation for sustainable agentic AI adoption.</p><h3>The Bigger Picture: Stop Building More Agents. Start Building Better Systems.</h3><p>The transition from single-agent applications to multi-agent systems represents an important development in AI engineering.</p><p>But it also exposes a fundamental misconception.</p><p><strong>Connecting several intelligent agents does not automatically create an intelligent system.</strong></p><p>The real engineering work happens in the architecture connecting those components.</p><p>It happens in the orchestration logic that determines what happens next.</p><p>In the data architecture that ensures agents operate on trustworthy information.</p><p>In the validation mechanisms that detect errors before they propagate.</p><p>And in the security controls that determine what an agent is allowed to do.</p><p>For AI engineers, the challenge is evolving from prompt design and model integration toward building reliable, observable, and governable systems.</p><p>For solution architects, it means applying established software engineering principles to applications that incorporate probabilistic reasoning and autonomous decision-making.</p><p>And for organizations investing in agentic AI, it means evaluating success through measurable outcomes rather than the number of agents deployed.</p><p>The enterprise architecture perspective brought into focus through <strong>Somil Rastogi’s expertise at SAS</strong> offers a useful way to examine this transition.</p><p>As AI systems become more capable, the importance of their surrounding architecture does not diminish.</p><p>It grows.</p><p>Because the question that ultimately matters isn’t how many agents an organization can deploy.</p><p><strong>It’s whether those agents can work together reliably enough to be trusted with real business responsibilities.</strong></p><p>And that may be the defining challenge of the next generation of enterprise AI.</p><h3>About the Expert</h3><p><a href="https://www.linkedin.com/in/somil-rastogi04/"><strong>Somil Rastogi</strong></a> is a <strong>Principal Solutions Architect at SAS</strong>, with a focus on enterprise technology and solution architecture. His expertise provides an enterprise-oriented perspective on agentic AI architecture, multi-agent systems, and the challenges of designing scalable AI applications.</p><h3>About the Host</h3><p><strong>Deepesh Patel</strong> is a <strong>Relationship Lead at Packt</strong>, connecting industry experts and practitioners to explore emerging technologies, practical engineering challenges, and the ideas shaping modern software development.</p><p><strong>Packt Expert Conversations</strong> brings together industry practitioners and technical leaders to explore the engineering decisions behind emerging technologies, helping developers move beyond the hype and build solutions that work in the real world.</p><blockquote>Join <strong>150K+ data scientists, AI engineers, BI leaders, analysts, and finance professionals</strong> staying ahead of the trends shaping the future of data and AI.</blockquote><blockquote>👉 <strong>Subscribe to DataPro:</strong> [<a href="https://packtdatapro1.substack.com/">Packt DataPro | Substack</a>]<br>👉 <strong>Subscribe to BIPro:</strong> [<a href="https://packtbusinessintelligencepro.substack.com/">Packt BI-Pro | Substack</a>]<br>👉 <strong>Subscribe to AlgoFinance: </strong>[<a href="https://packtalgofinance.substack.com/">Packt AlgoFinance | Substack</a>]</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1106ee6095f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/adding-more-ai-agents-wont-fix-your-workflow-here-s-what-might-1106ee6095f2">Adding More AI Agents Won’t Fix Your Workflow. Here’s What Might.</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Data Works for BI. So Why Does Your LLM Keep Getting It Wrong?]]></title>
            <link>https://medium.com/packt-hub/your-data-works-for-bi-so-why-does-your-llm-keep-getting-it-wrong-612e9c1689a6?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/612e9c1689a6</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 10:40:26 GMT</pubDate>
            <atom:updated>2026-10-08T10:40:26.224Z</atom:updated>
            <content:encoded><![CDATA[<h4>EXPERT INSIGHTS | DATA &amp; AI ENGINEERING</h4><h4>How one enterprise transformed hundreds of thousands of unstructured insurance documents into an LLM-ready data platform, reduced manual processing time by 97%, and discovered why clean data alone is not enough for production AI.</h4><blockquote>Interview hosted by Vaideeshwari Roshan, Portfolio Manager, Packt | Featuring Jennifer Ratten, VP, Application Engineering | Data Strategy and Practice, NFP, an Aon company</blockquote><p>Your dashboards are accurate. Your SQL queries return the right numbers. Your data pipelines are running smoothly.</p><p>Then you connect a large language model, ask it a seemingly straightforward question, and suddenly the answers are incomplete, inconsistent, or simply wrong.</p><p>What changed? The data didn’t. The way it needed to be understood did.</p><p>This is one of the most overlooked challenges in enterprise AI. Data engineered for reporting, analytics, and business intelligence is not necessarily ready for retrieval, reasoning, or conversational AI.</p><p>And the consequences extend far beyond a disappointing chatbot response. In industries where accuracy, compliance, and trust matter, a poorly grounded answer can undermine an entire AI initiative.</p><p>In a conversation hosted by Vaideeshwari Roshan, Portfolio Manager at Packt, <a href="https://www.linkedin.com/in/jenniferratten/">Jennifer Ratten, VP of Application Engineering, Data Strategy and Practice at NFP, an Aon company,</a> shared what it actually takes to build an LLM-ready data foundation.</p><p>Drawing on a production implementation involving hundreds of thousands of insurance documents, Ratten explained how her team combined document intelligence, retrieval-augmented generation (RAG), semantic modeling, structured databases, and AI agents to transform a highly manual process into a scalable AI-enabled workflow.</p><p>The result was striking: approximately 97% less manual processing time, achieved by rethinking how data was prepared, structured, validated, and retrieved.</p><p>But the most valuable lesson wasn’t about the model or the technology stack.</p><p>It was about understanding the data well enough to make AI trustworthy.</p><h3>The Business Problem: Thousands of Health Plans, Hundreds of Thousands of Documents, and Too Much Manual Work</h3><p>Before moving into technology, Ratten spent nearly two decades working with insurance agencies. Her career began on the business side, where operating within a small organization made efficiency a necessity rather than an aspiration.</p><p>She started automating repetitive tasks through macros and reporting, gradually moving into analytics, Power BI, and Microsoft’s Power Platform. As AI capabilities evolved, she began applying them to operational problems that traditional automation could not easily solve.</p><p>Following her company’s acquisition, she transitioned fully into technology, focusing on building and scaling solutions using Microsoft Fabric and related technologies.</p><p>That combination of business experience and technical expertise became particularly important when tackling one of her most demanding projects.</p><p>The organization was processing hundreds of thousands of unstructured documents, including PDFs, Word files, and text documents containing detailed health insurance plan information.</p><p>Each document could contain different terminology, layouts, coverage rules, and benefit structures.</p><p>Insurance agents were responsible for reviewing these documents manually, extracting relevant details, and entering the information into multiple downstream systems.</p><p>The challenges were predictable but significant:</p><ul><li>Manual extraction: Employees spent substantial time locating and interpreting information buried inside documents.</li><li>Inconsistent terminology: Similar benefits could be described differently across providers and plan types.</li><li>Frequent updates: Changes to health plans required information to be reviewed and updated repeatedly.</li><li>Limited scalability: Growing document volumes increased operational effort and the risk of errors.</li><li>Fragmented access: Information existed across documents and systems rather than within a consistent, queryable knowledge foundation.</li></ul><p>The system supported an operational environment of roughly 70,000 employees, with individual employees responsible for managing thousands of health plans.</p><p>At that scale, even minor inefficiencies could become substantial operational bottlenecks.</p><p>The goal was not simply to automate document reading.</p><p>It was to build a system that could extract, validate, standardize, compare, and retrieve insurance information reliably, while allowing users to interact with that information through natural language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*3H8qpQprxM6ZJd6ezJEWwQ.png" /></figure><blockquote>Figures shared by Jennifer Ratten. The 99% figure represents a project requirement, not a reported final accuracy result.</blockquote><h3>Why One LLM Was Never Going to Solve the Problem</h3><p>One of the first architectural decisions was recognizing that the solution could not rely on a single LLM prompt or a standalone RAG application.</p><p>The system needed several complementary AI capabilities working together.</p><p>Retrieval-augmented generation grounded responses in relevant source documents, reducing dependence on the model’s internal knowledge.</p><p>Document classification helped distinguish between different formats, plan categories, and content structures.</p><p>Section-level summarization extracted and normalized important details from specific benefit categories, while higher-level summarization made broader plan information easier to interpret.</p><p>Conversational AI allowed users to ask questions without navigating multiple documents or manually constructing database queries.</p><p>And AI agents supported more complex workflows involving reasoning, plan comparisons, and response generation.</p><p>These were not isolated features bolted onto a document repository. They formed an integrated data processing and reasoning architecture.</p><p>That distinction matters.</p><p>A chatbot might answer a question about a single document reasonably well. A production insurance application must identify the correct plan, retrieve the relevant coverage section, distinguish similar terminology, compare information against other sources, and produce an answer consistent with the underlying records.</p><p>Each step introduces another opportunity for error.</p><p>The challenge was not getting an LLM to read documents. It was ensuring that every piece of information reaching the LLM was relevant, interpretable, and trustworthy.</p><h3>Inside the Architecture: From Raw Documents to AI-Ready Intelligence</h3><p>Ratten described an architecture that separated document ingestion, semantic preparation, structured storage, and AI-driven reasoning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*807ThRTQ6SZnmpkRtYy1sw.png" /><figcaption>Conceptual representation based on the architecture described in the interview.</figcaption></figure><p>Documents first entered blob storage, where they were parsed and normalized.</p><p>The team then applied LLM-driven chunking logic designed to accommodate approximately 25 different document layout variations across insurance plan types.</p><p>This was a critical departure from generic document-processing approaches.</p><p>Rather than splitting text into arbitrary segments, the pipeline needed to preserve the meaning and relationships between insurance benefits, coverage conditions, and plan categories.</p><p>Once extracted and normalized, structured information was stored in Cosmos DB and Fabric SQL databases.</p><p>These data stores provided a consistent foundation for downstream querying and AI workflows.</p><p>On top of that foundation, agents built using Microsoft AI Foundry handled reasoning, comparisons, and final response generation.</p><p>Python and SQL formed the core of the transformation, validation, and orchestration work, with R Studio used selectively for analytical tasks.</p><p>The architecture reflects an important principle for modern data engineering: LLM readiness is not a final transformation applied before inference. It is an end-to-end design requirement.</p><h3>The Chunking Problem: Why Generic RAG Failed to Deliver Accurate Answers</h3><p>Chunking is often treated as a routine implementation detail in RAG systems.</p><p>Choose a chunk size, add overlap, generate embeddings, and move on.</p><p>For Ratten’s team, that approach was not sufficient.</p><p>Early experiments with generic chunking produced weaker accuracy because the structure of the documents carried important business meaning.</p><p>A health insurance document is not simply a collection of paragraphs. It contains relationships between plan types, coverage categories, conditions, exclusions, and benefit structures.</p><p>Splitting the document without respecting those relationships can remove the very context needed to answer a question correctly.</p><p>The team found that section-based chunking delivered substantially better results.</p><p>Instead of organizing content around arbitrary token boundaries, documents were divided into meaningful sections, such as hospital services or prescription coverage.</p><p>Those sections were then refined according to the structural differences between document types.</p><p>This approach made retrieval more aligned with how insurance professionals actually reason about coverage.</p><p>For example, a question about prescription benefits should retrieve the relevant prescription coverage section for the correct plan, not a semantically similar passage from another plan or benefit category.</p><p>The distinction sounds simple.</p><p>In production, it can determine whether the system delivers a reliable answer or a misleading one.</p><h3>When the data existed, but retrieval still failed</h3><p>One of the clearest examples emerged during user acceptance testing.</p><p>Users were asking for information about a specific health plan, but the system returned results covering multiple plan types.</p><p>The information was present in the underlying dataset.</p><p>The model was not necessarily inventing facts.</p><p>The failure was in how the data had been chunked and indexed.</p><p>The original indexing strategy did not sufficiently distinguish between plan categories, allowing unrelated plan information to enter the retrieval results.</p><p>The team addressed the issue by introducing additional indexing layers aligned with specific plan types.</p><p>This exposed a problem that many AI teams misdiagnose.</p><p>When an LLM produces the wrong answer, the immediate instinct is often to change the model, rewrite the prompt, or adjust the generation parameters.</p><p>But sometimes the model is simply receiving the wrong context.</p><p>Before optimizing generation, teams need to verify that retrieval is selecting the correct business entities and relationships.</p><h3>Accuracy Wasn’t a Final Test. It Was Built into the Pipeline.</h3><p>Given the sensitive and regulated nature of health insurance information, the project had demanding operational requirements.</p><p>Accuracy needed to meet a minimum target of 99%. Responses had to arrive within seconds or minutes rather than hours. Security, stability, and personalization were also essential.</p><p>Different users needed different types of outputs, and the system had to support those requirements without compromising consistency.</p><p>Interestingly, cost was not the primary constraint.</p><p>The organization was prepared to invest in the infrastructure required to deliver a reliable solution.</p><p>That shifted the engineering focus toward correctness, performance, and operational stability.</p><p>Rather than waiting until the end of development to evaluate the system, Ratten’s team introduced approximately 15 checkpoints throughout the pipeline.</p><p>These checkpoints tracked retrieval accuracy, latency, and hallucination rates before tuning, during the addition of processing layers, and after optimization.</p><p>The goal was to identify regressions as soon as they appeared.</p><p>For example, a transformation might improve retrieval precision but increase latency. A new indexing strategy might make some plan categories easier to find while reducing accuracy for others.</p><p>By measuring continuously, the team could understand the consequences of individual architectural changes.</p><p>This is a valuable lesson for any organization moving from AI prototypes to production.</p><p>A successful demo shows that a model can produce an answer.</p><p>A production evaluation strategy must establish whether the system consistently retrieves the right information, respects business constraints, and remains reliable as data changes.</p><h3>Batch vs. Real Time: Not Every Document Needs Immediate Processing</h3><p>Another important architectural decision involved separating stable reference data from information that required immediate processing.</p><p>The team maintained what Ratten described as a core universe of plans, refreshed through weekly batch processing.</p><p>This provided a consistent baseline for the majority of queries.</p><p>Real-time processing was reserved for point-of-service scenarios where users uploaded new or updated documents and needed those documents processed and compared against the existing knowledge base immediately.</p><p>This hybrid approach balanced freshness with operational stability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*qcScQhWBUgXyDjKIO2X4xA.png" /></figure><p>The team also had to address external benchmarks that were sometimes one or two years behind current information.</p><p>Rather than treating outdated benchmarks as current truth, the system incorporated equivalency disclosures so stakeholders could understand the limitations of comparisons.</p><p>That decision highlights a broader point: making data LLM-ready also requires making its limitations visible.</p><p>A model may generate a fluent comparison, but fluency does not make outdated or incomplete reference information reliable.</p><h3>The Hardest Decisions Were About Data Meaning, Not Model Selection</h3><p>Some of the most consequential engineering work happened before information ever reached the LLM.</p><p>The team needed to determine which entities mattered, which attributes were essential, and what minimum information a document needed to contain before it could be considered usable.</p><p>Not every health plan document included every required element.</p><p>Instead of forcing incomplete documents through the same processing path, the team established minimum viability criteria.</p><p>These criteria helped distinguish plans that could be reliably compared from those lacking sufficient information.</p><p>The team also had to resolve semantic differences in insurance terminology.</p><p>Two documents could describe equivalent benefits using different language, while similar terms could refer to materially different coverage conditions.</p><p>Without normalization, those differences could distort retrieval and comparisons.</p><p>Another improvement came from isolating anomalous benefit structures and excluding them from early processing stages.</p><p>The team deliberately began with a narrower dataset and expanded coverage gradually as the system became more stable.</p><p>This required accepting a trade-off: less breadth and less-than-perfect real-time completeness in exchange for higher accuracy and more dependable performance.</p><p>For AI engineering teams under pressure to support every use case immediately, that is a particularly relevant lesson.</p><p>A smaller, well-understood knowledge base can be more useful than a comprehensive dataset whose semantics cannot be trusted.</p><h3>Why Your BI Data Model May Be the Wrong Starting Point for LLMs</h3><p>Perhaps the most important misconception Ratten challenged was the assumption that clean, well-modeled BI data is automatically ready for AI.</p><p>Traditional BI systems are optimized for reporting, aggregation, filtering, and consistent analytical calculations.</p><p>Star and snowflake schemas serve those requirements well.</p><p>But LLM-driven applications introduce different needs.</p><p>They must interpret natural-language questions, identify relevant entities, understand relationships, retrieve supporting context, and reason across information that may not fit neatly into a conventional reporting structure.</p><p>A data model that answers how many employees are enrolled in a particular plan? may not be sufficient to answer how does this plan’s prescription coverage compare with another plan under a specific set of conditions?</p><p>The second question requires more than accurate tables.</p><p>It requires semantic context, relationships, and an understanding of business meaning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*KahklqsUXXahj9wzxqhFGw.png" /></figure><p>This does not mean traditional BI models should be abandoned.</p><p>It means they may need additional semantic layers, transformations, metadata, and retrieval structures before they can reliably support LLM applications.</p><p>Ratten identified conventional star and snowflake schemas as early signals that additional transformation work may be necessary.</p><p>The problem is not that these schemas are poorly designed.</p><p>It is that they were designed to solve a different class of problem.</p><h3>If She Were Building It Again, She Would Start with Ontologies</h3><p>When asked what she would change if she were rebuilding the system today, Ratten’s answer was particularly revealing.</p><p>She would introduce ontologies from the beginning.</p><p>An ontology defines the important concepts in a domain and the relationships between them.</p><p>In a health insurance context, that could mean explicitly representing relationships between plans, coverage categories, benefits, eligibility conditions, and providers.</p><p>Instead of depending entirely on document text and implicit associations, the system could use a more formal semantic foundation.</p><p>That could make it easier to incorporate additional data sources, maintain consistent definitions, and support more sophisticated reasoning.</p><p>It could also help address some of the challenges encountered during the original implementation, including inconsistent terminology, plan-specific indexing, and complex comparisons.</p><p>This points toward an important evolution in enterprise AI architecture.</p><p>The next challenge is not merely making documents searchable.</p><p>It is making the underlying business knowledge understandable to machines.</p><p>Ontologies, knowledge graphs, and semantic modeling can help provide that foundation, particularly in domains where relationships and context determine the correctness of an answer.</p><h3>Five Lessons for Data Engineers Building Production LLM Systems</h3><p>Ratten’s experience offers practical guidance for teams building AI-enabled data platforms.</p><p>1. Model business meaning before optimizing retrieval.</p><p>Identify the entities, relationships, terminology, and rules that determine whether an answer is correct. A technically clean dataset can still be semantically ambiguous.</p><p>2. Design chunking around document structure.</p><p>Generic chunk sizes are a starting point, not a universal solution. Preserve the sections, categories, and contextual relationships users depend on.</p><p>3. Evaluate the entire pipeline, not just model output.</p><p>Track retrieval accuracy, latency, and hallucination rates throughout development. Introduce checkpoints to catch regressions before they reach production.</p><p>4. Prioritize reliability over immediate completeness.</p><p>Define minimum viability criteria, isolate anomalous records, and expand coverage gradually. A trustworthy narrow solution is a stronger foundation for scale.</p><p>5. Keep domain experts involved throughout development.</p><p>Many production failures emerge from misunderstood business rules rather than model limitations. Stakeholder knowledge must inform architecture, testing, and validation.</p><h3>The Bigger Picture: AI-Driven Data Engineering Is Really About Trust</h3><p>There is a tendency to measure progress in enterprise AI by the sophistication of the models being deployed.</p><p>Larger context windows, more capable agents, faster inference, and increasingly advanced reasoning systems attract attention.</p><p>But Ratten’s experience reveals a different reality.</p><p>The success of an enterprise LLM application often depends on the less visible engineering decisions beneath it.</p><p>How are documents classified? Which entities are important? Where should content be split? What metadata is required? How do we distinguish similar plan types? When is information too incomplete or outdated to support a reliable comparison?</p><p>These are fundamentally data engineering and business modeling questions.</p><p>The approximately 97% reduction in manual processing time demonstrates what becomes possible when those questions are addressed systematically.</p><p>Yet the deeper achievement was creating a foundation that could transform fragmented documents into information suitable for retrieval, comparison, and conversational interaction.</p><p>For organizations already investing in modern data platforms, the message is clear.</p><p>Being data-rich is not the same as being AI-ready.</p><p>A well-governed warehouse, accurate dashboard, or mature analytics pipeline is a valuable starting point. But production LLM systems demand another layer of engineering: one that preserves context, encodes business meaning, evaluates retrieval quality, and makes uncertainty visible.</p><p>And as Ratten’s experience shows, getting that foundation right can matter far more than choosing the latest model.</p><p>The next time an enterprise LLM gives the wrong answer, the most useful question may not be, Which model should we use instead?</p><p>It may be:</p><p>Did we ever make the data understandable enough for the model to answer correctly?</p><h3>About the Expert</h3><p><a href="https://www.linkedin.com/in/jenniferratten/">Jennifer Ratten is VP, Application Engineering | Data Strategy and Practice at NFP, an Aon company.</a> A data, AI, and platform architect and transformation leader, she brings nearly two decades of insurance industry experience into enterprise technology. Her work focuses on building scalable data and AI solutions, including implementations using Microsoft Fabric and the Microsoft Power Platform. She also shares practical implementation insights through technology conferences and community engagement.</p><h3>About the Host</h3><p>Vaideeshwari Roshan is a Portfolio Manager at Packt. In this expert conversation, she explores the architectural, operational, and business challenges of making enterprise data LLM-ready, from document processing and semantic modeling to retrieval accuracy and production-scale AI systems.</p><blockquote>Editorial note: This article is adapted from the supplied interview with Jennifer Ratten, hosted by Vaideeshwari Roshan. The narrative has been reorganized for clarity and readability. All project figures and implementation details are based on the interview, and no reconstructed statements are presented as verbatim quotations.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=612e9c1689a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/your-data-works-for-bi-so-why-does-your-llm-keep-getting-it-wrong-612e9c1689a6">Your Data Works for BI. So Why Does Your LLM Keep Getting It Wrong?</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Control Theory to Causal Inference: A Three‑Decade Journey That Led to My Book]]></title>
            <link>https://medium.com/packt-hub/from-control-theory-to-causal-inference-a-three-decade-journey-that-led-to-my-book-3419aa8b4200?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/3419aa8b4200</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 10:24:51 GMT</pubDate>
            <atom:updated>2026-09-24T10:29:54.863Z</atom:updated>
            <content:encoded><![CDATA[<h4>Written by <strong>Yousri El Fattah</strong></h4><p>Some academic journeys begin with a clear plan. Mine began with a question that refused to leave me alone: <a href="https://www.packtpub.com/en-in/product/causal-inference-with-bayesian-networks-9781835089217"><em>How do we intervene in a system to achieve a desired effect?</em></a> That question followed me across continents, across disciplines, and across decades — from aeronautical engineering in Cairo to stochastic adaptive control in Europe and Morocco, and eventually to causal inference and Bayesian networks in Southern California.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*JPunxVYvfJjMJu6XTLFSsA.png" /><figcaption><a href="https://www.linkedin.com/in/yelfattah/">Yousri El Fattah</a> Founder, Causal Computing | Causal AI &amp; Bayesian Networks | Decision Intelligence for Complex, High‑Uncertainty Systems</figcaption></figure><p><strong>A Selection of Early Publications</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*0b49T33dhssq5VPUHK06ZQ.png" /><figcaption><strong>A selection of early publications that shaped my work in stochastic adaptive control, learning automata, and AI during my years in Cairo, Europe, Morocco, and California.</strong></figcaption></figure><p>Only in hindsight do I see the thread connecting it all. Every phase of my work — optimal control, learning automata, stochastic processes, modeling biological morphogenesis, market price formation, and communication flow control — was really an exploration of how systems behave, adapt, and respond when we act upon them. Causality was always present. I simply didn’t yet have the vocabulary for it.</p><p><strong>The First Half: Learning to Control What We Don’t Fully Know</strong></p><p>My early academic life was devoted to understanding how to control systems whose dynamics were uncertain or partially unknown. I focused on finite Markov chains and semi‑Markov processes, developing active, recursive learning mechanisms that unified control and estimation in real time.</p><p>This work introduced several ideas that today echo in reinforcement learning:</p><ul><li>Randomized control policies to ensure continual exploration</li><li>Reward gradient formulas to quantify how policy changes affect long‑run performance</li><li>Recursive stochastic gradient algorithms that adapt policies safely toward optimality</li></ul><p>At the time, these were simply solutions to problems I found intellectually irresistible. Today, they resemble early versions of concepts that underpin modern adaptive systems.</p><p>The figure below illustrates block diagrams from my book <em>Learning Systems</em>, depicting supervised learning of Bayes’ rule, a game between multiple learning automata, a flow‑control system regulating server activity, and a learning automaton.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*vqh0PvQy9BkLSJUaQ7qi1A.png" /><figcaption><strong>Block diagrams from <em>Learning Systems</em> illustrating supervised learning, multi</strong>‑<strong>automata games, flow control, and adaptive stochastic automata.</strong></figcaption></figure><p><strong>The Turning Point: Discovering the Language of Causality</strong></p><p>Everything changed in 1986.</p><p>While teaching control systems and AI at California State University Long Beach, I attended a lecture by Judea Pearl on Bayesian networks. That single talk reframed my entire intellectual world. It connected the systems I had spent decades modeling with a new, powerful idea: <strong>causal structure</strong>.</p><p>I realized that the question I had been chasing — <em>how do we intervene?</em> — was the beating heart of causal inference.</p><p>From that moment on, my research, teaching, and industry work shifted toward causal modeling, Bayesian networks, and decision analysis. When Packt approached me in 2023 to write a book on causal inference with Bayesian networks, I knew it was time to synthesize everything I had learned across my eclectic academic journey.</p><p><strong>Three Years, Hundreds of Papers, and One Unifying Vision</strong></p><p>Writing <a href="https://www.packtpub.com/en-in/product/causal-inference-with-bayesian-networks-9781835089217"><em>Causal Inference with Bayesian Networks</em></a> took three years of deep reading, coding, experimentation, and careful structuring. My goal was ambitious:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y17y17N7D3NP4Jvq" /><figcaption><a href="https://www.packtpub.com/en-in/product/causal-inference-with-bayesian-networks-9781835089217">Causal Inference with Bayesian Networks</a></figcaption></figure><p><strong>Build a book that teaches causal inference not as abstract theory, but as a practical, computational discipline grounded in Bayesian networks, influence diagrams, and relational databases.</strong></p><p>The book is organized into three parts:</p><p><strong>1. Representation (Chapters 1–5)</strong></p><p>Foundations of probability, Bayesian networks, structural causal models, and relational database representations.</p><p><strong>2. Inference (Chapters 6–11)</strong></p><p>Join tree clustering, probabilistic inference, causal identifiability, potential outcomes, and machine‑learning meta‑learners for heterogeneous treatment effects.</p><p><strong>3. Applications (Chapters 12–14)</strong></p><p>Real‑world case studies in economics, epidemiology, and social science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*1UIqyhxTV4Zv-pk650cntg.png" /><figcaption><strong>Examples of Bayesian networks, do</strong>‑<strong>calculus structures, and join tree clustering — core topics explored in the book.</strong></figcaption></figure><p>One of the book’s most distinctive contributions is an algorithm that compiles influence diagrams into <strong>Query Composition Graphs (QCGs)</strong> — a reusable, SQL‑driven workflow for computing maximum expected utility (MEU). This bridges causal modeling with production‑grade decision systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*xDKzITObN8VLEQx8P53TEA.png" /><figcaption><strong>Examples of influence diagrams, database representations, Query Composition Graphs (QCGs), and computed MEU policies featured in the book.</strong></figcaption></figure><p><strong>About the Book</strong></p><p><strong>Causal Inference with Bayesian Networks</strong> <em>Build Bayesian Networks and Causal Inference Models with R and Python </em>by <strong>Yousri El Fattah</strong> and <strong>Reza Bagheri</strong></p><p>This book provides:</p><ul><li>A unified introduction to Bayesian networks and structural causal models</li><li>Hands‑on inference using R and Python</li><li>Practical methods for causal identifiability and treatment‑effect estimation</li><li>A novel SQL‑based workflow for MEU computation using QCG</li><li>Real‑world applications in economics, epidemiology, and social science</li></ul><p><strong>Why I Wrote This Book</strong></p><p>Because causal inference is no longer optional.</p><p>Whether you work in AI, data science, economics, epidemiology, or decision analysis, understanding <em>why</em> things happen — and how to intervene — has become essential. Bayesian networks and influence diagrams offer a structured, transparent way to reason under uncertainty.</p><p>My hope is that this book gives readers not just knowledge, but <strong>tools they can use immediately</strong>:</p><ul><li>Build Bayesian networks from scratch</li><li>Perform probabilistic and causal inference</li><li>Implement SCMs and meta‑learners</li><li>Deploy causal models inside relational databases</li><li>Compute MEU policies using QCGs</li></ul><p>After more than two years of collaboration with my co‑author, <strong>Reza Bagheri</strong>, the book is now live on Amazon. It represents the culmination of my academic journey — and the beginning of yours.</p><p>This book is not just a technical guide — it is the culmination of a lifetime spent asking how systems respond when we intervene, and how understanding causality can help us make better decisions.</p><p><strong>Book Link</strong></p><p>👉 <a href="https://packt.link/QNELF">https://packt.link/QNELF</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*s01WKv4vdDrd6-Mlokv-uA.png" /><figcaption><strong><em>Causal Inference with Bayesian Networks</em></strong></figcaption></figure><p><strong>About the Author</strong></p><p><a href="https://www.linkedin.com/in/yelfattah/"><strong>Yousri El Fattah</strong></a> is the founder of Causal Computing and a researcher whose career spans aeronautical engineering, stochastic adaptive control, learning automata, and causal inference. He has held academic appointments across Egypt, Europe, Morocco, and Southern California, and has contributed foundational work on randomized control policies, recursive learning algorithms, and causal modeling. His current work focuses on Bayesian networks, influence diagrams, and decision systems that bridge theory with real‑world applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3419aa8b4200" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/from-control-theory-to-causal-inference-a-three-decade-journey-that-led-to-my-book-3419aa8b4200">From Control Theory to Causal Inference: A Three‑Decade Journey That Led to My Book</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Most LLM Benchmarks Fail in Production: Maxime Labonne on the Future of AI Evaluation]]></title>
            <link>https://medium.com/packt-hub/why-most-llm-benchmarks-fail-in-production-maxime-labonne-on-the-future-of-ai-evaluation-eef0bcf40d93?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/eef0bcf40d93</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 07:06:29 GMT</pubDate>
            <atom:updated>2026-09-16T07:06:29.802Z</atom:updated>
            <content:encoded><![CDATA[<h4>LLM Evaluation &amp; Reliability</h4><h4>Maxime Labonne, Head of Post-Training at Liquid AI, explains why benchmark scores rarely tell the whole story, why evaluation should start before training, and how data teams can build LLM systems that survive contact with real users.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAMbg13s-pnI%3Fstart%3D12%26feature%3Doembed%26start%3D12&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAMbg13s-pnI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAMbg13s-pnI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/37da2a8e2a8d158c7ffd22479455f901/href">https://medium.com/media/37da2a8e2a8d158c7ffd22479455f901/href</a></iframe><p>An LLM tops a benchmark.</p><p>It scores well on coding, reasoning, instruction following or general knowledge. The evaluation dashboard looks strong. The team ships it.</p><p>Then users arrive.</p><p>They phrase requests differently from the evaluation set. They introduce edge cases nobody anticipated. They expect outputs in particular schemas. They combine constraints. They send inputs that look nothing like the carefully prepared examples used during development.</p><p>And suddenly, the model that looked excellent on paper does not look quite so capable in production.</p><p>This gap between <strong>benchmark performance and production performance</strong> is becoming one of the most important engineering problems in applied AI.</p><p>In a conversation hosted by <strong>Sanjana Gupta, Relationship Lead at Packt</strong>, <a href="https://www.linkedin.com/in/maxime-labonne/"><strong>Maxime Labonne</strong></a><strong>, Head of Post-Training at Liquid AI</strong>, explores why teams need to rethink how they evaluate language models, where automated evaluation works, why smaller specialized models can sometimes outperform much larger ones, and what ML teams should prioritize if they want more reliable AI systems.</p><p>Labonne’s argument is not that benchmarks are useless.</p><p>It is that <strong>a benchmark should be treated as a signal, not a verdict</strong>.</p><p>For data scientists, ML engineers and AI practitioners building systems for production, that distinction changes almost everything.</p><h3>The benchmark says the model is better. Your users may disagree.</h3><p>The traditional model-selection workflow feels reassuringly quantitative.</p><p>Run several candidate models against MMLU, HumanEval, a leaderboard or another standardized evaluation. Compare the numbers. Pick the model with the strongest result.</p><p>But Labonne points to an uncomfortable problem: <strong>the ranking produced by an evaluation does not necessarily reflect how people experience the models in practice</strong>.</p><p>A model can perform exceptionally well on a standardized test while another is preferred by developers for actual programming work.</p><p>That does not necessarily mean the benchmark is wrong.</p><p>It means the benchmark measures only part of the system’s behavior.</p><p>LLMs now operate across coding, extraction, reasoning, summarization, agents, RAG, tool use, structured generation and countless domain-specific tasks. Expecting one score to represent performance across that entire space is increasingly unrealistic.</p><p>Labonne therefore recommends treating evaluations as multiple signals rather than searching for one definitive number.</p><p>The same caution applies to human preference systems and automated judge models. Human evaluations introduce their own incentives and biases. LLM-as-a-judge systems can automate comparison at scale, but judge models also have biases.</p><p>There is no perfect evaluator.</p><p>For practitioners, the more useful question becomes:</p><p><strong>What evidence would convince us that this model works for the specific job we are asking it to perform?</strong></p><p>That question leads to a very different evaluation strategy.</p><h3>Why good benchmark performance can collapse in production</h3><p>One of the most dangerous evaluation failures happens before deployment.</p><p>Suppose your training and evaluation examples come from essentially the same distribution.</p><p>The evaluation set is technically separate. There is no obvious leakage. Your metrics look excellent.</p><p>But both datasets were generated using similar assumptions, similar pipelines or similar source material.</p><p>The model can become extremely good at the world represented by your test set without becoming equally good at the world represented by your users.</p><p>Labonne highlights contamination as an obvious version of this problem. If a model has effectively encountered the evaluation data during training, extraordinarily high benchmark scores deserve scrutiny.</p><p>But the problem can be subtler.</p><p>Even without direct contamination, training and evaluation distributions can resemble one another too closely.</p><p>Production users do not care about your data distribution.</p><p>They will use the system in ways you did not expect.</p><p>They will submit strange inputs, omit context, combine requirements, misunderstand instructions and discover failure modes that never appeared in the development environment.</p><p>A model can therefore pass an evaluation while the evaluation itself fails to represent reality.</p><p>That is why production evaluation should not simply ask:</p><p><strong>Did the model answer our test questions correctly?</strong></p><p>It should ask:</p><p><strong>Does our test set resemble the situations this system will actually encounter?</strong></p><h3>Start with evaluation, not training</h3><p>This is perhaps the most actionable idea from Labonne’s interview.</p><p>Many teams follow a familiar sequence:</p><p><strong>collect data → train or fine-tune → evaluate → discover problems → rebuild</strong></p><p>Labonne argues for reversing part of that process.</p><p><strong>Define the evaluation first.</strong></p><p>Consider a seemingly straightforward task such as structured data extraction.</p><p>You give the model an article or paragraph and expect JSON.</p><p>At first glance, the task sounds clear.</p><p>It is not.</p><p>What fields should the JSON contain?</p><p>Can objects be nested?</p><p>Which fields are optional?</p><p>Which data types are permitted?</p><p>How should missing values be represented?</p><p>What happens when the source contains contradictory information?</p><p>What should the model do when the requested information does not exist?</p><p>Before generating thousands of training examples, the team needs to define what success actually means.</p><p>Once those expectations become an evaluation dataset, something important happens: <strong>the evaluation becomes the specification for the system</strong>.</p><p>It tells engineers what to optimize.</p><p>It tells data teams what examples need to exist.</p><p>And it gives stakeholders something concrete to approve.</p><p>Labonne even recommends separating the processes used to produce training and evaluation data where possible. Different people, processes or code paths can reduce the risk of accidentally building an evaluation that merely reproduces the assumptions embedded in training.</p><p>The lesson for data teams is simple:</p><blockquote><strong><em>If your evaluation is built from the same assumptions as your training data, it may validate your pipeline rather than challenge your model.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WM4NQyHwWJusMmtd0dlLaQ.png" /></figure><h3>Evaluation is also a stakeholder-alignment tool</h3><p>There is another reason to build evaluations early that has little to do with model metrics.</p><p>It forces teams to agree on what the product is supposed to do.</p><p>Imagine showing a customer or product team an evaluation set before training:</p><p><em>Here are 100 situations we believe the model needs to handle. Here are the expected behaviors. Do these represent your use case?</em></p><p>Suddenly, abstract requirements become concrete.</p><p>Stakeholders can identify missing scenarios.</p><p>They can challenge assumptions.</p><p>They can decide whether a behavior is acceptable.</p><p>They can expose edge cases while changing them is still inexpensive.</p><p>Labonne argues that this is far easier at the beginning of a project than after the model has been trained and integrated.</p><p>For practitioners accustomed to software engineering, the idea resembles test-driven development.</p><p>But for LLM systems, the evaluation suite does more than test code.</p><p><strong>It defines expected model behavior.</strong></p><p>And once that definition exists, constructing the right training dataset becomes much easier because the team knows what it is actually optimizing for.</p><h3>Automate what can be measured objectively</h3><p>Building better evaluations does not mean manually reviewing every output.</p><p>Labonne strongly supports automated evaluation because it changes the economics of experimentation.</p><p>ML teams operate under a time budget.</p><p>If evaluating every model takes days of manual review, fewer models can be trained and fewer ideas can be tested.</p><p>Automating repeatable checks reduces that cycle time.</p><p>The saved time can then be spent where Labonne believes it matters most: <strong>experimentation and data quality</strong>.</p><p>Some failures are particularly suitable for automation.</p><p>A model falling into a repetition loop, for example, should not require a human reviewer to discover it every time. If an output repeats the same phrase thousands of times, an automated evaluator should catch it.</p><p>Likewise, many instruction-following requirements are deterministic.</p><p>If the instruction says:</p><p><em>Return five bullet points in Italian.</em></p><p>A program can check whether:</p><ul><li>the response contains five bullet points;</li><li>the required format was followed;</li><li>the output satisfies the language requirement.</li></ul><p>The evaluator does not need another giant model to decide whether a bullet point exists.</p><p>This distinction is increasingly important as teams experiment with <strong>reinforcement learning with verifiable rewards (RLVR)</strong>.</p><h3>If a machine can verify the requirement, let it</h3><p>Labonne contrasts verifiable rewards with approaches that depend heavily on learned reward models.</p><p>Consider an instruction:</p><p><strong>“Answer using bullet points.”</strong></p><p>A Python function can inspect the response and determine whether the requirement was satisfied.</p><p>Pass the check: reward.</p><p>Fail the check: no reward.</p><p>More complicated instructions can support partial credit.</p><p>If the model must produce bullet points <strong>and</strong> answer in Italian, satisfying one constraint but not the other could receive an intermediate reward.</p><p>This works particularly well for tasks with objectively testable outcomes:</p><p><strong>Instruction following. Mathematical answers. Structured output. Formatting constraints. Function calls. Schema compliance.</strong></p><p>For data practitioners, the implication is significant.</p><p>Before reaching for another LLM to evaluate an LLM, ask:</p><p><strong>Can this requirement be expressed as code?</strong></p><p>If yes, deterministic verification may be cheaper, faster and easier to debug.</p><h3>But not everything valuable is verifiable</h3><p>Now ask the model to write a good poem.</p><p>A Python function can check whether the response contains four stanzas.</p><p>It cannot reliably tell you whether the poem is moving.</p><p>This is the boundary of purely deterministic evaluation.</p><p>Open-ended tasks such as writing quality, tone, creativity and some forms of reasoning cannot always be reduced to binary checks.</p><p>In those situations, Labonne suggests bringing reward or judge models back into the evaluation architecture.</p><p>The useful pattern is therefore not:</p><p><strong>deterministic evaluation versus model-based evaluation.</strong></p><p>It is:</p><p><strong>use deterministic evaluation wherever the requirement is objectively verifiable, and model or human judgment where it is not.</strong></p><p>A mature evaluation system can combine all three.</p><p>That gives practitioners a useful hierarchy:</p><p><strong>Code where possible. Models where necessary. Humans where judgment genuinely matters.</strong></p><h3>The evaluation suite should evolve with the model</h3><p>Evaluation is not something a team finishes.</p><p>New models reveal new failure modes.</p><p>Users uncover behaviors the development team never anticipated.</p><p>Labonne gives repetition or “doom loops” as an example: a model may start repeating the same words or sentences endlessly. Once a team discovers a failure like this, it should become part of the evaluation suite.</p><p>That creates an important engineering cycle:</p><p><strong>discover failure → encode failure → test automatically → prevent regression</strong></p><p>Over time, the evaluation harness becomes a record of what the team has learned about the system.</p><p>This is much closer to production software testing than leaderboard chasing.</p><p>The best evaluation suite is therefore not necessarily the one containing the most famous benchmarks.</p><p>It is the one that increasingly reflects <strong>your model, your application and your users</strong>.</p><h3>Small models change the economics of production AI</h3><p>The conversation also moves beyond evaluation into another shift that data practitioners should be watching: the growing usefulness of small language models.</p><p>At Liquid AI, Labonne works with models ranging from hundreds of millions to several billion parameters, including models designed to run locally on phones, laptops and other edge hardware.</p><p>Why does that matter?</p><p>Because cloud-scale LLMs introduce constraints that benchmark leaderboards rarely capture:</p><p><strong>Cost. Latency. Connectivity. Privacy. Hardware requirements.</strong></p><p>A frontier cloud model might produce the strongest general-purpose answer.</p><p>But what happens when the application needs to operate without internet connectivity?</p><p>What happens when sensitive information cannot leave the device?</p><p>What happens when latency needs to be extremely low?</p><p>Or when an agentic workflow consumes enormous numbers of tokens?</p><p>At that point, “best model” stops being a meaningful question without context.</p><p>The real question becomes:</p><p><strong>Best model for what operational constraint?</strong></p><h3>A smaller model can beat a larger model when the task becomes narrow</h3><p>Labonne describes a particularly revealing example involving in-car function calling.</p><p>A client required a very specific function-calling format.</p><p>A large general-purpose model struggled with the task.</p><p>A much smaller model was fine-tuned specifically on examples matching that format.</p><p>According to Labonne, the specialized model achieved <strong>over 90% accuracy</strong>, compared with roughly <strong>10–20% for the GPT-4 system tested at the time</strong>.</p><p>The point is not that small models are universally better.</p><p>Labonne explicitly notes that general-purpose tasks become harder for smaller models.</p><p>The lesson is about specialization.</p><p>When the problem is sufficiently narrow, a small model can be trained directly around the required behavior.</p><p>For practitioners, that suggests another reason why application-specific evaluation matters.</p><p>A generic benchmark might strongly favor the larger model.</p><p>Your private evaluation might strongly favor the smaller one.</p><p>And if the smaller model also delivers lower latency, local inference and dramatically lower inference cost, the production decision can look very different from the leaderboard.</p><h3>Agentic AI makes model economics impossible to ignore</h3><p>This trade-off becomes particularly important for agents.</p><p>Agentic systems can be extremely token hungry.</p><p>A conventional chatbot may make one model request and return one answer.</p><p>An agent can reason, call a tool, inspect the result, generate another request, call another tool, revise its plan and repeat the process.</p><p>Token consumption compounds.</p><p>Labonne expects this to strengthen the case for local and smaller models, particularly for tasks where frontier-model quality is unnecessary.</p><p>That does not mean cloud models disappear.</p><p>Instead, production architectures may become more selective.</p><p>Use a specialized local model for predictable, repetitive or narrow operations.</p><p>Escalate to a larger cloud model when the problem actually requires the additional capability.</p><p>For data and AI teams, model routing may therefore become as important as model selection.</p><h3>The future of LLM evaluation is probably not one benchmark</h3><p>So what happens as models become more capable?</p><p>Labonne expects evaluation to move away from dependence on a handful of dominant benchmarks toward <strong>many specialized signals</strong>.</p><p>This is already happening.</p><p>Researchers and practitioners are building evaluations for increasingly narrow domains and behaviors.</p><p>Individually, each benchmark sees only a small part of the model.</p><p>Collectively, they can provide a much richer picture.</p><p>This matters because improvements between successive frontier models may not always appear as dramatic gains on everyday tasks. Instead, Labonne argues that much of the progress comes from models becoming competent across an expanding range of domains.</p><p>The capability surface gets wider.</p><p>Evaluation therefore has to get wider too.</p><p>The interesting infrastructure opportunity is an <strong>aggregation layer</strong> capable of combining many heterogeneous signals into a more useful picture of model behavior.</p><p>Until then, practitioners should resist compressing model quality into one leaderboard position.</p><h3>What should an ML team do in the next 30 days?</h3><p>Labonne’s recommendation is surprisingly simple:</p><p><strong>Start with evaluations.</strong></p><p>Not after the next fine-tuning run.</p><p>Not immediately before launch.</p><p>Now.</p><p>For a team building an LLM application, a practical 30-day version of that advice could look like this:</p><p><strong>Week 1: Define production behavior</strong></p><p>Write down the tasks the system actually needs to perform. Include output formats, constraints, edge cases and unacceptable failures.</p><p><strong>Week 2: Build a private evaluation set</strong></p><p>Create examples representing realistic user behavior rather than merely reproducing the training distribution. Separate evaluation-data creation from training-data creation wherever practical.</p><p><strong>Week 3: Automate the obvious</strong></p><p>Turn deterministic requirements into executable checks: schema validation, formatting, function calls, numerical correctness, repetition detection and instruction compliance.</p><p>Use model-based or human evaluation for qualities that cannot be verified reliably with code.</p><p><strong>Week 4: Connect evaluation to experimentation</strong></p><p>Run every meaningful model, prompt, fine-tuning or data change through the same harness.</p><p>When production reveals a new failure, add it to the suite.</p><p>The goal is not a perfect benchmark.</p><p>It is an evaluation system that becomes harder for your model to fool and increasingly representative of what users actually need.</p><h3>If the budget is limited, invest in data and evaluation</h3><p>When asked where a team with limited resources should invest first, Labonne returns to the fundamentals.</p><p><strong>Data quality is one of the strongest drivers of model performance.</strong></p><p>But data alone is not enough.</p><p>Without evaluation, you cannot reliably determine whether better data actually produced a better system.</p><p>Training itself is becoming increasingly automated. Tooling can handle much of the mechanical work.</p><p>The harder questions remain human ones:</p><p>What data represents the problem?</p><p>What behavior counts as success?</p><p>What failures matter?</p><p>What should be measured?</p><p>And does the evaluation actually resemble production?</p><p>That makes <strong>data and evaluation</strong> two sides of the same engineering problem.</p><h3>Stop asking which model is best</h3><p>Perhaps the most useful takeaway from the conversation is a change in the question practitioners ask.</p><p>Instead of:</p><p><strong>Which LLM has the highest benchmark score?</strong></p><p>Ask:</p><p><strong>Which model performs reliably on the distribution, constraints and failure modes that matter to this application?</strong></p><p>That change sounds small.</p><p>In practice, it affects model selection, dataset design, fine-tuning, evaluation infrastructure, deployment architecture and cost.</p><p>Public benchmarks remain useful. Human preference remains useful. LLM judges remain useful. Private prompts and “vibe checks” remain useful too. Labonne himself says that before shipping, one of his final signals is a private collection of prompts designed to probe different model capabilities.</p><p>None of these signals needs to become the truth.</p><p>They become more valuable when they are combined.</p><p>And the closer evaluation gets to the messy reality of production, the more useful it becomes.</p><p>Because the hardest test for an LLM is not MMLU, HumanEval or a leaderboard.</p><p><strong>It is what happens after real users start typing.</strong></p><h3>About the expert</h3><p><a href="https://www.linkedin.com/in/maxime-labonne/"><strong>Maxime Labonne</strong></a> is <strong>Head of Post-Training at Liquid AI</strong> and holds a PhD in artificial intelligence. His work spans LLM post-training, evaluation and efficient language models. He has created widely used LLM resources and models on Hugging Face and is the author of <em>LLM Engineer’s Handbook</em> and <em>Hands-On Graph Neural Networks Using Python</em>. His open LLM course on GitHub has attracted more than 39,000 stars.</p><h3>About the host</h3><p><strong>Sanjana Gupta</strong> is <strong>Relationship Lead at Packt</strong>. She hosted this conversation with Maxime Labonne on the widening gap between benchmark performance and production reliability, exploring LLM evaluation, verifiable rewards, automated evaluation, small language models and the practical changes AI teams can make to build more dependable systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eef0bcf40d93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/why-most-llm-benchmarks-fail-in-production-maxime-labonne-on-the-future-of-ai-evaluation-eef0bcf40d93">Why Most LLM Benchmarks Fail in Production: Maxime Labonne on the Future of AI Evaluation</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Power BI Problem May Not Be Power BI]]></title>
            <link>https://medium.com/packt-hub/your-power-bi-problem-may-not-be-power-bi-b0d1a407b23a?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/b0d1a407b23a</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 11:07:32 GMT</pubDate>
            <atom:updated>2026-09-08T13:50:52.574Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>EXPERT EDGE | FROM FRAGMENTED DATA TO TRUSTED DECISIONS</strong></h4><h4>Robert Hawker explains why trusted analytics begins with business priorities, governed semantic models, and controls that help people move faster rather than hold them back</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYVkV5QQ9om_bXK4l7PVDA.png" /></figure><p>A company can invest heavily in Microsoft Fabric and Power BI, migrate data, build semantic models, publish dashboards, and train users, yet still watch employees return to their Excel trackers.</p><p>It is tempting to call this resistance to change. Often, it is something more fundamental: the analytics environment has not earned users’ trust.</p><p>Reports may be slow, incomplete, duplicated, or disconnected from the decisions people actually need to make. Governance may arrive too late, after conflicting metrics have already spread, or too forcefully, turning every improvement into a lengthy approval process. In both cases, the technology is visible, but the business value is not.</p><p>In a conversation hosted by <strong>Apeksha Shetty, Portfolio Manager at Packt</strong>, Microsoft Fabric and Power BI consultant, trainer, author, and experienced data and analytics leader <a href="https://www.linkedin.com/in/robert-hawker-b2a63b5/"><strong>Robert Hawker</strong></a> shared a more practical way to approach the problem. His central argument is that successful analytics transformation does not begin with a platform feature. It begins with the outcome an organization needs, the data problems blocking it, and a governance model designed to produce lasting improvement.</p><h3><strong>Start governance where the business already feels the pain</strong></h3><p>There is no universal first step for enterprise data governance. The right starting point depends on the organization’s industry, strategy, and immediate pressures.</p><p>In financial services, a regulatory return may set the priority. During a major transformation, attention may need to shift to new processes, new systems, and the quality of migrated data. Sometimes the trigger is an operational emergency, such as suppliers threatening action because data failures have prevented timely payment.</p><p>When no urgent driver is obvious, Hawker recommends starting with the organization’s strategy. Ask leaders what is preventing them from delivering their objectives, without limiting the discussion to issues already labelled as data problems. A deeper analysis often reveals that apparently operational or commercial blockers have data at their root.</p><p>That connection matters. Stakeholders are more likely to support governance when they can see how it improves the probability of achieving an outcome they already care about.</p><p>Prioritization can then follow a familiar benefit-versus-effort assessment. Quantitative and qualitative value should be weighed against the cost and complexity of resolving each issue, with high-benefit, lower-effort opportunities rising to the top. But the calculation is not purely mechanical. An early initiative backed by a supportive stakeholder can create proof, credibility, and an internal advocate for the wider programme.</p><p>The important distinction is between a quick fix and a quick win. Hawker recalls a proposal to pay a supplier for a one-off cleanse of supplier data using generic industry rules. Instead, he redirected the investment into the foundations of a repeatable data quality process and a tool containing rules specific to the organization. The initiative delivered near-term improvement while building a capability that could sustain it.</p><p>The lesson is simple: even early wins should point towards the long-term operating model.</p><h3><strong>When dashboards are ignored, diagnose the experience before blaming the users</strong></h3><p>Low Power BI adoption can look like a technology problem, a data problem, a governance failure, or a cultural issue. Frequently, several are present at once.</p><p>Hawker says the most common cause is a gap between report developers and business users. Developers understand the data and may have built the semantic model, but they are not close enough to the operational decision to create a useful product. Business users understand what the analysis needs to accomplish, yet may lack access to governed data or the Power BI skills required to build it themselves.</p><p>The diagnosis should therefore begin with wide-ranging conversations, especially with the people whose roles should benefit most from the reporting.</p><p>What users say provides clues about where to look:</p><p><strong>“Reports are slow or out of date.”</strong> Poor semantic modelling, many-to-many relationships, failed refreshes, insufficient operational oversight, or a throttled Fabric capacity may be involved. What appears to be a performance complaint can expose gaps in skills and governance.</p><p><strong>“The figures are wrong or important data is missing.”</strong> The source data may be unreliable, but governance is also implicated. Releasing a report should include an explicit assessment of whether its data quality is known and adequate for the intended decision.</p><p><strong>“There are five reports for the same topic, and I do not know which one to trust.”</strong> This is a sign of weak analytical governance. Decentralized development without shared definitions and endorsement creates competing versions of the truth.</p><p><strong>“My Excel tracker is more reliable.”</strong> This may indicate a cultural barrier, but dismissing the user would be a mistake. If an established process provides dependable information, the new solution must offer a compelling improvement, such as a better outcome, stronger security, or less manual work.</p><p>Adoption is not achieved by asking people to stop using familiar tools. It is achieved by giving them something demonstrably more useful and trustworthy.</p><h3><strong>What happens when poor data becomes an operational emergency</strong></h3><p>Hawker has seen the consequences of low-quality data move far beyond reporting.</p><p>At one organization formed through acquisition, hurried migrations had left critical records incomplete. More than 90% of the field used to store suppliers’ remittance-advice email addresses was blank, even though a different field for purchase-order emails had been populated.</p><p>From the operators’ perspective, remittance advices were being created. In practice, they were not reaching suppliers. Suppliers could not easily match incoming payments to outstanding invoices, so queries flooded the payments team. Staff became consumed by resolving those queries, a payment backlog developed, and some suppliers considered stopping services because they had not been paid. The risk extended as far as the power supply to a large UK manufacturing plant.</p><p>Senior leaders were initially told that the team did not have enough people to handle the workload. The underlying problem was not headcount. It was data.</p><p>The crisis elevated data quality to the board and executive committee agenda. With funding secured, the organization worked with process and data owners to establish business rules, then built a tool to measure, correct, and maintain data quality. Scores could be analysed by data object, quality dimension, company, and country, allowing progress to be tracked rather than assumed.</p><p>During Hawker’s time there, the average overall data quality score rose from <strong>73% to 93%</strong>, improving both operational processes and analytical outcomes.</p><p>The hardest part was not building the measurement tool. It was finding people with enough knowledge of the newly established processes and enough time to define the rules. To reduce the burden, the team profiled data extracted from the ERP system, inferred possible rules, and presented process owners with a practical starting point for review. This was faster than asking busy experts to begin with a blank page.</p><p>It also illustrates why broad data quality programmes frequently lose momentum. A programme should begin in an area connected to organizational strategy and supported by a stakeholder willing to help the team navigate its first implementation. Scope without sponsorship creates activity. Focus with sponsorship creates evidence.</p><h3><strong>Trusted self-service requires a deliberate division of responsibility</strong></h3><p>“Self-service” is often used as though it has one agreed meaning. It does not.</p><p>For one organization, it may mean allowing people to run centrally developed reports. For another, it means enabling trained users to build reports from a governed semantic layer. Before designing the platform, leaders need to define which version of self-service they are trying to enable.</p><p>Hawker recommends a model with three distinct layers of responsibility.</p><h4><strong>Centralize enterprise data engineering</strong></h4><p>A central team should manage the ingestion, transformation, and preparation of strategically important datasets. Its role includes connecting enterprise systems such as ERP, CRM, and HR platforms and creating cross-system data products where business processes require them.</p><p>Manufacturing planning, for example, may require sales-pipeline data from a CRM to be combined with inventory levels and production times from an ERP system. That integration is an enterprise concern, not something every report developer should rebuild independently.</p><h4><strong>Centralize enterprise semantic modelling</strong></h4><p>Organizations should aim for a relatively small number of reusable Power BI semantic models aligned to meaningful business subject areas. The names and boundaries must reflect the business itself. A streaming company, for example, might need a model centred on “subscribers and engagement” rather than a generic “sales” model.</p><p>These centrally managed models should contain governed metrics that multiple reports can reuse. When calculations live in the shared semantic layer, consistency becomes part of the architecture instead of something every development team must negotiate later.</p><h4><strong>Enable self-service report development</strong></h4><p>Business users can then develop reporting products on top of those models. They are often closest to the requirement and best positioned to translate it into a useful report, provided they receive sufficient training in the model’s relationships, measures, and intended use.</p><p>This freedom requires discipline. When a new enterprise metric is needed, report developers should request its addition to the shared semantic model rather than quietly recreating it inside an individual report.</p><p>Hawker does not advocate shutting off Fabric capabilities to prevent experimentation. Innovation should remain possible, especially as AI makes advanced capabilities more accessible. The governance boundary appears when an experiment demonstrates enterprise value. At that point, it should be handed to the central data engineering and modelling teams so it can be hardened, supported, and reused.</p><h4><strong>Build a governed path from discovery to trust</strong></h4><p>A trusted self-service platform needs more than architecture. Users must be able to find the right content, understand it, and judge whether it is suitable for an important decision.</p><p>Hawker’s adoption and governance playbook includes four connected elements:</p><p><strong>Create a curated reporting catalogue.</strong> Scanner API output alone is not enough. The catalogue should provide business definitions for reports and metrics, explain ownership, and help users distinguish current, trusted content from duplication.</p><p><strong>Embed reports into the work itself.</strong> In organizations with detailed standard operating procedures, such as pharmaceutical companies, relevant Power BI reports should be referenced within those procedures rather than treated as a separate destination employees must remember to visit.</p><p><strong>Establish proportionate quality assurance.</strong> Peer review, testing, and documentation should lead to clear Power BI endorsement, such as promoted or certified status. Senior stakeholders should understand those levels and question important content that lacks them. Quality assurance builds decision confidence and protects Fabric capacity from inefficient development.</p><p><strong>Invest in the community.</strong> A strong Power BI community spreads learning among report developers and creates a working relationship between those developers and the teams responsible for semantic models.</p><p>Templates for accessibility, colour, branding, navigation, and slicer behaviour can also reduce reinvention and raise the baseline quality of reporting.</p><p>The danger is allowing governance to become so restrictive that people route around it. Disabling export to Excel may offer security and adoption benefits in the long term, but imposing the restriction before users have a workable alternative can alienate them. The same applies to endorsement: if a report takes two weeks to build and another six weeks to approve, the process has made trusted delivery impractical.</p><p>Good governance creates a shorter, clearer route to trusted content. It should not make unofficial content the fastest way to get work done.</p><h3><strong>Apply controls according to the consequence of being wrong</strong></h3><p>The baseline does not need to change dramatically across most organizations. Content relied upon for decisions should receive appropriate peer review, testing, and documentation. These practices protect both information quality and the Fabric capacity from excessive consumption caused by inefficient artefacts.</p><p>Highly regulated sectors may require additional teams and formal checks. In a pharmaceutical company, for example, the quality function may need to participate when analytics contributes to GxP compliance.</p><p>Within the same organization, however, not every report carries the same risk. Hawker recommends classifying content according to its intended use:</p><p><strong>Team-level or exploratory content</strong>, including sprint reporting and prototypes intended to provoke discussion</p><p><strong>Internal decision content</strong> used to guide significant operational or strategic choices</p><p><strong>External content</strong> shared with customers, auditors, regulators, or other outside stakeholders</p><p>Internal and external reporting may both require review, testing, and documentation, but the evidence and data controls should be stricter for external use. Supplementing governed platform data with a spreadsheet might be acceptable for some internal reporting. For external reporting, the data should come through managed systems and platforms, with data engineering responsible for curating the feed and controlling its quality.</p><p>This consequence-based model preserves flexibility without treating trust as optional.</p><h3><strong>A practical first-year roadmap for Microsoft Fabric</strong></h3><p>There is no single Fabric roadmap. A company migrating from Databricks faces a different programme from a greenfield organization, while a business using Fabric only for semantic modelling and reporting needs a different architecture from one moving its entire data engineering estate.</p><p>For an organization migrating an existing platform and adopting Fabric for both data engineering and Power BI, Hawker recommends an agile, incremental approach.</p><h4><strong>Months 1–3: Establish the operating foundations</strong></h4><p>Appoint Fabric administration and governance roles, create an initial capacity, and confirm the business scope. A small pay-as-you-go capacity that can be turned off outside working hours may be appropriate at the beginning.</p><p>Agree the architectural principles before sprint delivery accelerates. Decide where transformations will occur, how many engineering layers are needed, when to use Lakehouses or Warehouses, and whether capabilities such as Materialized Lake Views belong in the design. Complete the necessary architecture, privacy, and security reviews early.</p><p>Capacity management should begin on day one. If a notebook consumes 10,000 capacity units each day to perform simple transformations on only a few thousand rows, that inefficiency will become more expensive as data volumes grow.</p><p>Hawker also recommends implementing Microsoft’s free <a href="https://github.com/microsoft/fabric-toolbox/tree/main/monitoring/fabric-unified-admin-monitoring"><strong>Fabric Unified Admin Monitoring</strong></a> solution early. It captures tenant activity and inventory, creating a history that cannot be reconstructed indefinitely from Microsoft’s limited audit-log retention.</p><h4><strong>Months 3–6: Discover and design around current needs</strong></h4><p>Run requirements workshops to define reporting outputs and the enterprise data model. Revalidate business needs rather than reproducing the old platform exactly. A platform designed several years ago reflects an earlier version of the organization; migration is an opportunity to remove obsolete logic and address new priorities.</p><p>Make initial development connections to source systems and resolve network, gateway, and access constraints. Ingest the required data into development and test environments, understand the source schemas, and document the transformations needed to produce target dimensions and facts.</p><h4><strong>Months 6–12: Deliver thin slices of production value</strong></h4><p>After governance documentation is approved and development work has been proven, connect to production sources and move into sprint-based delivery. Each tranche should carry a small, coherent set of requirements through development, testing, and production so the programme demonstrates value early and learns continuously.</p><p>Where skills and architecture permit, Hawker recommends using notebooks and Lakehouses to prepare star-schema-ready facts and dimensions. This reduces downstream transformation inside semantic models and supports Direct Lake models, avoiding the scheduled refresh pattern associated with Import mode. The recommendation must still match the team’s capabilities; an organization with strong Power Query skills but limited PySpark experience may reasonably choose a different path.</p><p>Across the 12 months, the aim is not to complete a technology migration in isolation. It is to establish an operating model in which architecture, governance, capacity oversight, data quality, and business delivery evolve together.</p><h3><strong>Governance should make trusted analytics easier</strong></h3><p>The common thread across Hawker’s advice is that governance earns support when it solves a visible business problem.</p><p>It prevents a missing email field from becoming a supply-chain crisis. It turns five competing reports into one discoverable, endorsed source. It allows business users to build what they need without recreating enterprise logic. It catches wasteful Fabric workloads before scale makes them expensive. And it gives decision-makers a reason to trust the information in front of them.</p><p>The goal is not maximum control. Nor is it unrestricted self-service. It is a deliberate system of shared responsibility: central teams manage enterprise data and definitions, business users apply their domain knowledge, and proportionate controls reflect the consequence of getting a decision wrong.</p><p>Organizations that begin there are more likely to achieve what their Fabric and Power BI investments promised in the first place: not more dashboards, but better decisions.</p><blockquote>Join <strong>150K+ data scientists, AI engineers, BI leaders, analysts, and finance professionals</strong> staying ahead of the trends shaping the future of data and AI.</blockquote><blockquote>👉 <strong>Subscribe to DataPro:</strong> [<a href="https://packtdatapro1.substack.com/">Packt DataPro | Substack</a>]<br>👉 <strong>Subscribe to BIPro:</strong> [<a href="https://packtbusinessintelligencepro.substack.com/">Packt BI-Pro | Substack</a>]<br>👉 <strong>Subscribe to AlgoFinance: </strong>[<a href="https://packtalgofinance.substack.com/">Packt AlgoFinance | Substack</a>]</blockquote><p><strong>About the conversation</strong></p><p>This expert conversation was hosted by <strong>Apeksha Shetty, Portfolio Manager at Packt</strong>, with <strong>Robert Hawker</strong>, Microsoft Fabric and Power BI consultant and trainer, author, and experienced data and analytics leader.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0d1a407b23a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/your-power-bi-problem-may-not-be-power-bi-b0d1a407b23a">Your Power BI Problem May Not Be Power BI</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Experiment Says the Feature Is Working. Your Users May Be Telling You Otherwise.]]></title>
            <link>https://medium.com/packt-hub/your-ai-experiment-says-the-feature-is-working-your-users-may-be-telling-you-otherwise-463b60dd15da?source=rss----9c47f8def1a1---4</link>
            <guid isPermaLink="false">https://medium.com/p/463b60dd15da</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Merlyn Shelley @PacktPub]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 07:47:46 GMT</pubDate>
            <atom:updated>2026-09-03T07:47:46.384Z</atom:updated>
            <content:encoded><![CDATA[<h4>Expert Insights | Experimentation and Causal Inference for AI Products</h4><h4>Lorenzo Toni, Lead Data Scientist — AI Product Analytics at Amazon, explains why traditional A/B testing can miss what is really happening inside AI products, and how causal inference can reveal the downstream effects that engagement metrics hide.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YKjpBrGQnlMAGrt-07ksA.png" /></figure><p>An AI feature can pass an experiment and still make the product worse.</p><p>Engagement can rise. Session duration can increase. Users can interact with the feature more frequently. An A/B test can even produce statistically convincing results.</p><p>And yet, a few weeks later, conversion starts falling.</p><p>Users stop returning.</p><p>Trust begins to erode.</p><p>That is the measurement problem AI product teams increasingly need to confront.</p><p>Traditional digital products generally give users a relatively deterministic experience. Change a button, ranking algorithm, checkout flow, or interface and teams can establish a reasonably clean treatment and control.</p><p>Generative AI changes that assumption.</p><p>The same feature can produce different answers for different users, and even different answers for the same user. A seemingly insignificant prompt adjustment can alter the length, tone, relevance, accuracy, and usefulness of an interaction.</p><p>So what exactly should teams measure?</p><p>And more importantly, <strong>how do you know whether an AI feature actually caused the outcome you are seeing?</strong></p><p>That question was at the centre of a conversation between <strong>Nilesh Kowadkar, Relationship Lead at Packt, and </strong><a href="https://www.linkedin.com/in/tonilore/"><strong>Lorenzo Toni, Lead Data Scientist — AI Product Analytics at Amazon</strong></a>, focused on experimentation and causal inference for AI products. Drawing on a generalized e-commerce case study, Lorenzo unpacked why apparently positive metrics can be misleading and why AI teams need to look beyond conventional A/B testing.</p><h3>When More Engagement Is Actually a Warning Sign</h3><p>Consider an e-commerce platform introducing an AI chatbot designed to help customers discover products.</p><p>Instead of navigating through search results, users could ask questions, compare prices, describe what they wanted, and receive recommendations conversationally.</p><p>A change was made to the prompt powering the chatbot.</p><p>Initially, the numbers looked promising.</p><p>Engagement increased. Users performed more actions. They also spent longer interacting with the chatbot.</p><p>Under a conventional product analytics framework, those signals could easily be interpreted as evidence that the new experience was working.</p><p>Then, roughly two weeks later, another pattern emerged.</p><p>Chatbot interactions began declining.</p><p>More importantly, overall website conversion started falling.</p><p>The metric that initially appeared particularly encouraging, <strong>time spent with the chatbot</strong>, turned out to be negatively correlated with conversion.</p><p>Users were not necessarily spending longer because the experience was valuable.</p><p>Some were spending longer because the chatbot was taking too long to help them reach a decision.</p><p>A ten-minute conversation might look like excellent engagement on a dashboard. To the customer, it might mean:</p><p><em>I could have found this myself in thirty seconds.</em></p><p>That distinction matters.</p><p>Because when AI introduces friction instead of removing it, the damage may extend beyond a single failed interaction. Users learn from that experience. The next time they need something, they may bypass the chatbot entirely.</p><p>The apparent engagement win can therefore become a <strong>trust problem</strong>.</p><h3>The Real Problem Wasn’t the Chatbot. It Was What the Chatbot Was Optimizing For.</h3><p>Digging deeper revealed another issue.</p><p>The chatbot was largely recommending top-ranked, popular products.</p><p>At first glance, that seems perfectly rational.</p><p>Popular products already convert well. Recommend them more frequently and customers should be more likely to buy them.</p><p>Except that assumption ignores <strong>why someone chooses an AI assistant instead of ordinary search</strong>.</p><p>A shopper typing <em>pen</em> into a search box probably expects popular pens.</p><p>Someone opening an AI chatbot may instead ask:</p><blockquote><em>What is the best gel pen for writing on rough paper?</em></blockquote><p>That is a fundamentally different intent.</p><p>The value of an LLM-powered shopping experience comes from its ability to understand those more specific needs and personalize the discovery process, rather than simply reproduce the first page of search results.</p><p>This changed the experimentation question.</p><p>Instead of asking:</p><p><strong>Does the new prompt increase chatbot engagement?</strong></p><p>The team needed to ask:</p><p><strong>What kind of conversational behaviour actually helps users make better decisions?</strong></p><h3>Experimenting With Different AI Behaviours</h3><p>Lorenzo worked with engineering and data teams to test alternative experiences.</p><p>The existing prompt became the baseline.</p><p>Another version made the chatbot more inquisitive, encouraging it to gather more information about the customer’s needs before recommending something.</p><p>A further approach explored what Lorenzo described as alternative “gems”: products that might not dominate the rankings but had strong reviews, good conversion performance, and a closer fit with a customer’s specific requirements.</p><p>The experiments also extended across regions using a <strong>switchback approach</strong>.</p><p>Rather than permanently assigning one experience to a group, different versions could be switched on and off across time periods. A user interacting with the system at one point might encounter one LLM behaviour and later encounter another.</p><p>This provided another way of understanding how changes to the AI experience affected behaviour while accounting for the dynamic nature of the system.</p><p>But product quality was only one side of the equation.</p><p>A more sophisticated recommendation experience could require access to a much larger product catalogue and richer context. That means additional memory, infrastructure, retrieval complexity, and ultimately cost.</p><p>The winning experiment therefore could not simply be the one with the highest conversion rate.</p><p>It had to be <strong>statistically meaningful, commercially valuable, and operationally practical</strong>.</p><h3>Where Traditional A/B Testing Starts to Struggle</h3><p>A/B testing remains enormously useful.</p><p>When teams can create clean treatment and control groups and isolate a specific intervention, it provides an intuitive framework for determining whether a product change caused an outcome.</p><p>But AI introduces complications.</p><p>Some users may already have experienced the AI feature. Others may use AI frequently outside the product. Some approach a chatbot naturally; others distrust it. One user might ask precise questions while another experiments with vague prompts.</p><p>Those differences can influence outcomes independently of the feature being tested.</p><p>And because generative AI itself is probabilistic, the underlying experience is not perfectly stable.</p><p>Lorenzo points to the assumptions behind traditional controlled experiments, including SUTVA, where treatment effects are expected to be sufficiently isolated and the experimental environment stable enough to interpret the comparison.</p><p>AI experiences make that harder.</p><p>The interface might remain identical while the generated response changes every time.</p><p>That is where causal inference becomes particularly valuable.</p><h3>Don’t Just Find a Control Group. Build a Better Counterfactual.</h3><p>Imagine two customers who look nearly identical according to conventional segmentation.</p><p>They are similar in age.</p><p>They have similar purchasing behaviour.</p><p>They spend similar amounts.</p><p>They browse similar products.</p><p>Yet one regularly uses AI assistants and knows how to ask detailed follow-up questions, while the other barely interacts with AI.</p><p>From the perspective of an AI product, those are not necessarily equivalent users.</p><p>Lorenzo argues that <strong>AI behaviour itself can become another important covariate</strong>.</p><p>Teams can attempt to identify comparable users not only through demographic and purchasing characteristics but through the way they interact with AI: the questions they ask, how they structure conversations, and how comfortable they are with AI-assisted decisions.</p><p>That opens the door to forms of matching and “digital twin” thinking, alongside techniques such as synthetic controls and interrupted time-series analysis.</p><p>Instead of relying entirely on a clean traditional control, teams can construct richer counterfactuals:</p><p><strong>What would probably have happened to this user if the AI experience had not changed?</strong></p><p>That is a much more powerful question than simply asking whether treatment group A converted more frequently than control group B.</p><h3>Measure the Journey, Not Just the AI Interaction</h3><p>This shift also changes what product teams consider success.</p><p>Suppose a user spends more time with an AI shopping assistant and eventually purchases the recommended product.</p><p>Success?</p><p>Possibly.</p><p>But now imagine that before buying, the same user copies the product name into the conventional search bar, reads the product page independently, and only then completes the purchase.</p><p>Conversion happened.</p><p>But did the user actually trust the AI recommendation?</p><p>Perhaps not.</p><p>Conversely, an experienced AI user may completely stop using traditional search because the assistant now satisfies that need.</p><p>That could look like <strong>cannibalization</strong> if teams examine search usage in isolation.</p><p>But if conversion remains stable, average order value improves, and time-to-order falls, the story looks very different.</p><p>The AI has not necessarily damaged search.</p><p>It may have <strong>successfully replaced part of it</strong>.</p><p>This is why Lorenzo argues that teams need to construct a coherent behavioural story around their metrics.</p><p>Conversion alone is not enough.</p><p>Engagement alone is not enough.</p><p>Session duration alone is certainly not enough.</p><p>You need to understand <strong>how the user moved from intention to interaction to decision</strong>.</p><h3>AI Product Analytics Needs to Explain the “Why”</h3><p>This becomes particularly important for generative AI products.</p><p>Traditional recommendation systems and optimization products already require careful experimentation, but LLM-driven applications add another variable: <strong>randomness is part of the product itself</strong>.</p><p>A product manager cannot simply eliminate that uncertainty.</p><p>They have to design measurement around it.</p><p>That means defining success metrics, guardrails, and downstream outcomes before declaring an experiment successful.</p><p>Instead of reporting:</p><p><strong>Conversion increased 4%.</strong></p><p>An AI product team should be working toward a richer explanation:</p><p><strong>A segment of customers held short, successful AI conversations and purchased the recommended item. Another segment abandoned the experience after longer conversations. Some users received recommendations from the AI but still verified them through conventional search before purchasing.</strong></p><p>Now the team knows where to intervene.</p><p>If customers abandon recommendations, perhaps recommendation quality needs work.</p><p>If conversations become hostile or frustrated, perhaps tone or accuracy needs attention.</p><p>If users repeatedly verify AI answers through conventional search, perhaps the underlying issue is trust.</p><p>If hallucinations are causing abandonment, retrieval or grounding may need improvement.</p><p>The measurement system becomes a diagnostic tool rather than simply a scoreboard.</p><h3>The Hidden Cost of Getting AI Experiments Wrong</h3><p>There is another reason experimentation matters so much for AI products.</p><p><strong>Bad AI experiences can teach customers not to use your AI.</strong></p><p>A poor conventional interface can be redesigned.</p><p>A bad AI interaction can create a stronger behavioural response: the user decides the assistant simply cannot be trusted.</p><p>As Lorenzo puts it, teams should <strong>experiment fast before they roll out fast</strong>.</p><p>If a deteriorating AI experience reaches users at scale, negative behaviour can spread quickly. Customers who repeatedly encounter inaccurate, irrelevant, or frustrating responses may begin ignoring future AI suggestions altogether.</p><p>Fast iteration therefore matters.</p><p>But fast experimentation does <strong>not</strong> mean random experimentation.</p><h3>Small Prompt Change. Surprisingly Big Experiment.</h3><p>One particularly important lesson concerns prompt engineering.</p><p>Changing a few words can look trivial from an engineering perspective.</p><p>Statistically, it may be anything but trivial.</p><p>Suppose a team changes its system prompt to instruct:</p><p><em>When customers ask a follow-up question, respond in a more conversational tone.</em></p><p>Then the team exposes 1,000 users to the new version.</p><p>Has the experiment actually tested “conversational tone”?</p><p>Not necessarily.</p><p>LLM outputs are probabilistic. Some responses from the original prompt may already sound conversational. Some responses from the modified prompt may not feel meaningfully different.</p><p>The experimental groups can therefore overlap semantically even though the underlying prompts differ.</p><p>To isolate a subtle behavioural effect like tone, teams may need <strong>far larger samples than expected</strong>, richer behavioural classification, and more sophisticated counterfactual methods.</p><p>This is an important distinction for AI teams.</p><p>You are not simply testing whether <strong>Prompt A differs from Prompt B</strong>.</p><p>You are testing whether the experiences those prompts generate are sufficiently different to cause a measurable change in human behaviour.</p><h3>The Framework: Hypothesis → Technique → Evidence → Rollout → Next Decision</h3><p>So what should an AI product team actually do?</p><p>Lorenzo’s recommendation is not to abandon A/B testing.</p><p>It is to build a broader experimentation discipline around it.</p><p>The process starts with a clear hypothesis.</p><p>Then choose an experimentation or causal technique appropriate to the question.</p><p>Collect enough evidence to distinguish meaningful effects from the randomness inherent in AI interactions.</p><p>Roll out deliberately.</p><p>And then ask what comes next.</p><p>Should exposure increase?</p><p>Is more evidence necessary?</p><p>Should the experiment move to another user cohort?</p><p>Are there particular forms of AI randomness that need further investigation?</p><p>The loop becomes:</p><blockquote><strong>Generate a hypothesis → choose the right evaluation technique → collect evidence → roll out → decide what needs to be tested next.</strong></blockquote><p>That framework gives product managers, data scientists, and engineers a common language for experimentation.</p><p>And that may be as important as the statistical techniques themselves.</p><h3>Causal Inference Is Also a Cultural Shift</h3><p>There is a final challenge.</p><p>A/B tests are relatively easy to communicate.</p><p>Treatment beat control.</p><p>Conversion increased.</p><p>Ship the feature.</p><p>Causal inference can be more nuanced. Matching, covariates, counterfactuals, interrupted time series, synthetic controls, and behavioural segmentation require greater statistical understanding.</p><p>But the resulting product story can actually be much more intuitive.</p><p>Instead of merely knowing <strong>what moved</strong>, teams begin understanding <strong>why it moved, for whom, under what conditions, and what might have happened otherwise</strong>.</p><p>Lorenzo argues that building confidence in those insights is partly a cultural challenge. Organizations need teams capable of understanding and trusting causal evidence rather than treating a single dashboard metric as the final verdict.</p><h3>The Metric Is Not the Outcome</h3><p>AI product teams have become remarkably good at measuring activity.</p><p>Tokens generated.</p><p>Conversations started.</p><p>Messages per session.</p><p>Session duration.</p><p>AI-assisted conversions.</p><p>Click-through rates.</p><p>But activity and value are not the same thing.</p><p>A customer spending ten minutes talking to your AI might be deeply engaged.</p><p>Or they might simply be struggling.</p><p>A decline in traditional search might indicate cannibalization.</p><p>Or it might mean your AI assistant has successfully replaced a slower workflow.</p><p>A conversion following an AI recommendation might demonstrate trust.</p><p>Or the customer might have independently verified everything the AI said before buying.</p><p><strong>The metric cannot tell you which story is true on its own.</strong></p><p>That is the deeper lesson from Lorenzo Toni’s conversation with Nilesh Kowadkar.</p><p>As AI becomes embedded in more products, experimentation cannot stop at asking whether a metric went up or down.</p><p>Teams need to understand the counterfactual.</p><p>They need to measure downstream behaviour.</p><p>They need to account for the randomness of AI responses and differences in how people interact with these systems.</p><p>And above all, they need to understand the human journey behind the numbers.</p><p>Because the most dangerous AI experiment isn’t necessarily the one that fails.</p><p><strong>It’s the one that appears to succeed while quietly making the product worse.</strong></p><blockquote>Join <strong>150K+ data scientists, AI engineers, BI leaders, analysts, and finance professionals</strong> staying ahead of the trends shaping the future of data and AI.</blockquote><blockquote>👉 <strong>Subscribe to DataPro:</strong> [<a href="https://packtdatapro1.substack.com/">Packt DataPro | Substack</a>]<br>👉 <strong>Subscribe to BIPro:</strong> [<a href="https://packtbusinessintelligencepro.substack.com/">Packt BI-Pro | Substack</a>]<br>👉 <strong>Subscribe to AlgoFinance: </strong>[<a href="https://packtalgofinance.substack.com/">Packt AlgoFinance | Substack</a>]</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463b60dd15da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/packt-hub/your-ai-experiment-says-the-feature-is-working-your-users-may-be-telling-you-otherwise-463b60dd15da">Your AI Experiment Says the Feature Is Working. Your Users May Be Telling You Otherwise.</a> was originally published in <a href="https://medium.com/packt-hub">Packt Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>