{"slug": "testing-ai-agent-accuracy", "title": "Testing AI agent accuracy", "summary": "Miro nearly doubled its analytics agent's accuracy from close to 50 percent to around 90 percent after layering DataHub Cloud in as a governed context platform between Claude Code and Snowflake, according to a DataHub case study. Before the context layer, Miro's evaluation bank of 900 manually written text-to-SQL questions measured accuracy at under 40 percent, with wrong-table routing in more than 30 percent of cases across its 20,000-plus datasets; Optiver separately raised agent accuracy from 42 percent to 74 percent on real researcher questions. Miro Lead Product Manager Ronald Angel said curating only critical data products and exposing them as the agent's sole semantic view eliminated routing errors, with the deterministic mode exceeding 90 percent accuracy.", "body_md": "# Testing AI agent accuracy\n\nAn AI agent context graph management supplier called [DataHub](https://datahub.com/ ) asks this question; how do AI agents monitor, prove, and compound their own accuracy to earn sustained trust?\n\nThere are underlying questions here, such as: what do we mean by AI agent accuracy? And: how do we test it?\n\nWe understand that Holland’s Optiver, a global automated trading firm, saw agent accuracy go from 42 percent to 74 percent on real researcher questions across its petabyte-scale data ecosystem after layering in a governed context facility. Is 74 percent accuracy good enough for production use? Most probably not.\n\nOnline collaboration platform [Miro](https://miro.com/) has more than 20,000 datasets spread across Snowflake, dbt, and Looker, spanning domains from finance to marketing to product analytics. When Miro connected Claude Code directly to Snowflake to enable natural language querying for business users, the early results were promising for simple questions but note for more complicated ones. \n\nA question like “give me the active users” would return something plausible but wrong. Ronald Angel, Lead Product Manager at Miro, and his team measured this precisely. Using an evaluation bank of 900 questions, testing text-to-SQL accuracy, created manually by data experts across business domains, they benchmarked accuracy at less than 40 percent. A sample question was: “What percentage of our premium accounts have two-factor authentication enabled?”\n\n- Accuracy was measured end-to-end: whether the agent produced the correct answer (right tables, joins, filters, and results) for each question.\n- The benchmark ran regularly and was updated with model or pipeline changes.\n- When Claude Code was connected directly to Snowflake (with ~20,000+ datasets and no strong context layer), accuracy was under 40 percent . Wrong-table routing occurred in more than 30 percent of cases.\n\nRonald Angel, Product Manager, Data Platform, Miro, said: “Starting with Snowflake metadata alone, our analytics agent answered about half of our benchmark questions correctly. After layering in DataHub Cloud as our context platform, including data product documentation, cross-source context and business meaning derived from our query history, we nearly doubled accuracy from close to 50 percent to around 90 percent .”\n\nRather than continuing to connect Claude Code directly to Snowflake with no context layer, Miro placed DataHub between the orchestrator and the SQL engine, using the DataHub MCP server to expose data entity descriptions, tags, glossary terms, column schemas, lineage, and search to the agent.\n\nMiro used Claude Code to orchestrate question decomposition and DataHub MCP to surface governed metadata, with Snowflake Cortex executing the final SQL.\n\nIt tracked accuracy as they added DataHub capabilities as a context/routing layer (via DataHub MCP exposing descriptions, tags, glossary terms, lineage, schemas, etc.) in stages:\n\nReviewing the benchmark questions still failing at the 85 percent level, Miro’s team found that many failures traced not to routing logic but to sparse model documentation or deprecated columns the agent could not distinguish from live ones.\n\nThe fix was to reduce the number, of data assets used by the agent and clarify definitions. Specifically, Miro curated only the data products critical to its AI use cases, documenting them with business definitions, dimensions, and measures in dbt, loaded into DataHub via MCP. The remaining 20,000+ assets were intentionally left out of scope.\n\nIt said that, when the right asset is well-documented and exposed as the only semantic view the agent can reach, routing errors disappear. The agent does not need to choose between 50 tables. It sees one. This is called a deterministic mode and has >90 percent accuracy.\n\nRead the DataHub Miro case study [here](<https://data hub.com/customer-stories/miro/ >).\n\n##### **Takeaways**\n\nBefore you can assess AI agent accuracy, you have to define it. That’s a simplistic statement but the actuality is complex. Look at Miro with 900 text-to-SQL test questions, and a 4-stage project progressively improving accuracy, with the final stage dispensing with >20,000 non-essential data sets and setting data definitions, etc. in stone as it were. Many team members were involved in this over time. It was a far from a simple task and only applies to one scenario; text-to-SQL generation. And it still didn’t get to 100 percent.\n\nConsider the idea of an AI agent acting on your behalf and booking airline tickets. Would a 90 percent accuracy rate be acceptable? It books a passenger identity, an airline, departure airport, a destination, a departure date, a departure time, a flight class, a seat, identifies a travel rewards program, and pays a price. Which of these ten things could it get wrong and still be acceptable?\n\nNone of them, of course. These are all mission-critical, so to speak. We need 100 percent accuracy.\n\nVerifying AI agent accuracy is going to become profoundly important.", "url": "https://wpnews.pro/news/testing-ai-agent-accuracy", "canonical_source": "https://www.blocksandfiles.com/ai-ml/2026/10/20/testing-ai-agent-accuracy/5304195", "published_at": "2026-10-20 15:21:23+00:00", "updated_at": "2026-10-20 15:47:41.054649+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "mlops", "ai-search"], "entities": ["DataHub", "Miro", "Claude Code", "Snowflake", "Snowflake Cortex", "Optiver", "Ronald Angel", "dbt"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/testing-ai-agent-accuracy", "markdown": "https://wpnews.pro/news/testing-ai-agent-accuracy.md", "text": "https://wpnews.pro/news/testing-ai-agent-accuracy.txt", "jsonld": "https://wpnews.pro/news/testing-ai-agent-accuracy.jsonld"}}