From the source
From the source
From the source

From the source
Enterprise Natural Language to SQL (NL2SQL) systems have evolved from single-shot query translators into autonomous data agents. Built with frameworks like Google's Agent Development Kit (ADK) and connected to cloud data warehouses like BigQuery, these agents inspect schemas, validate queries, and synthesize answers from live data.
While ADK makes it straightforward to build an NL2SQL data agent, you need metrics that are tailored to SQL semantics to prove that the agent is accurate, reliable, and ready for production. Built-in ADK criteria, such as the tool_trajectory_avg_score (which checks for an exact match on tool arguments, including the raw SQL string) and the response_match_score (which measures word overlap by using ROUGE-1) often fall short because they penalize valid, helpful variations in LLM-generated SQL queries.
When you design a custom evaluation metric in ADK , you can replace brittle string or table checks with deterministic, domain-aware evaluation. In this post, we'll walk through the five SQL evaluation traps that break standard benchmarks and show you how to build and run a custom semantic SQL evaluator in ADK. The evaluator's dilemma …
cloud.google.com