Google Cloud recently added two SQL functions to AlloyDB AI: ai.classify and ai.extract. Both are currently in preview and support PostgreSQL 18 and versions 1.6.1 or later of the google_ml_integration extension. Our view is that AI tools are moving from the “chat window” into the data workflows enterprises know best. The competitive focus is shifting from how well a model answers to whether it can be embedded reliably in existing systems.

What This Is

Traditionally, to process text in a database, enterprises had to export the data, call an external model API, and then handle prompts, return formats, failed retries, and writing results back to the database. AlloyDB AI now allows developers to classify text or extract structured fields directly with SQL.

ai.classify can sort customer reviews, support tickets, or clinical records into predefined categories. ai.extract pulls specified information from unstructured text. Both support batch processing, classification instructions, and few-shot prompting—giving the model several examples before asking it to complete a new task—and use what Google describes as intelligent batching to improve scalability.

Industry View

This is worth watching not merely because it adds two functions, but because it changes the cost structure of enterprise AI deployment. Once model calls sit inside the database query chain, enterprises can theoretically reduce network round trips, application code, and retry logic while avoiding repeated transmission of sensitive text across multiple systems.

We should remain cautious, however. First, Google’s performance claims come primarily from its own tests; actual results will still depend on model quality, data volume, concurrency, and prompt configuration. Second, putting model capabilities inside a database does not eliminate the need for access controls, auditing, and output validation. Classification errors, hallucinated fields, and deviations from business rules can still directly affect operational decisions.

More importantly, AlloyDB AI is part of Google Cloud’s product roadmap. Whether an enterprise already using other databases, models, or data platforms should migrate depends on its existing architecture, not the number of features alone. Database vendors are turning model capabilities into infrastructure entry points, while enterprises will continue to choose based on their established technology stacks.

Impact on Regular People

For enterprise IT: IT departments can more directly assess whether connecting AI to an existing database is worth piloting, particularly for text-processing use cases such as customer support, moderation, invoice processing, and customer feedback.

For workplace roles: Positions in finance, operations, customer service, and data analysis may increasingly use SQL to call AI. However, the core work will shift from manually organizing information to defining rules, checking results, and handling exceptions.

For the consumer market: If enterprises adopt these capabilities, organizing product reviews, routing after-sales tickets, and delivering personalized services may become faster to deploy. Users should still pay attention to whether companies explain data uses, retention scope, and mechanisms for human correction.