The following AlloyDB AI features and improvements are generally
Share
Services
## Feature
Feature
The following AlloyDB AI features and improvements are generally available ([GA](https://cloud.google.com/products#product-launch-stages)):
* Smart batching for AI functions: AI function acceleration is generally available for `ai.if`, `ai.rank`, `ai.analyze_sentiment`, `ai.summarize`,`ai.extract`, `ai.classify`, and `ai.generate` on AlloyDB clusters running PostgreSQL 17 and later. Smart batching automatically batches and offloads eligible AI operations for asynchronous evaluation. It improves query execution speed without requiring you to rewrite queries into complex array structures. In PostgreSQL 18 and later, this feature is enabled by default. For more information, see[Accelerate performance for queries with AI functions](https://cloud.google.com/alloydb/docs/ai/accelerate-ai-queries).
* Sentiment analysis: the `ai.analyze_sentiment` function is generally available on AlloyDB clusters running PostgreSQL 17 and later. This built-in function classifies the sentiment of text as positive, negative, or neutral directly within SQL queries in real time. For more information, see[Analyze text sentiment](https://cloud.google.com/alloydb/docs/ai/analyze-sentiment).