Your AI SQL agent needs a semantic layer, not just table names

Dev.to AI
Generative AI

Table names are not business context. An AI database agent can see orders, subscriptions, events, and users. That does not mean it knows what revenue means, which timestamp counts, or which joins are approved. Production natural-language SQL needs a semantic layer, not just schema