Wednesday, November 11, 2026
  • Login
  • Register
Technology Tutorials & Latest News | ByteBlock
  • Home
  • Tech News
  • Tech Tutorials
    • Networking
    • Computers
    • Mobile Devices & Tablets
    • Apps & Software
    • Cloud & Servers
    • IT Careers
    • AI
  • Reviews
  • Shop
    • Electronics & Gadgets
    • Apps & Software
    • Online Courses
    • Lifetime Subscription
No Result
View All Result
Tech Insight: Tutorials, Reviews & Latest News
No Result
View All Result
Home News Google

ai.classify and ai.extract functions in AlloyDB AI

November 11, 2026
in Google
0 0
0

[]Transactional databases store vast amounts of unstructured text — clinical notes, customer reviews, support tickets, invoices, and property descriptions. Historically, working with this text meant building complex application code: You had to export data from the database, call external model endpoints, write custom prompt wrappers, parse unpredictable responses, manage retry logic, and update database records. This application-side loop creates operational friction. It introduces query latency, bloats application code, increases model token costs, and creates data compliance risks by moving sensitive information across multiple network boundaries.

[]We built AlloyDB AI to bring Gemini world knowledge directly into your operational database. Rather than treating artificial intelligence as a disconnected external service, we integrated model intelligence directly into the database engine. Today, we are announcing the preview of two new SQL functions in the AlloyDB AI query engine — ai.classify and ai.extract — available in the google_ml_integration extension (version 1.6.1 or later) on PostgreSQL 18, allowing you to perform classification and structured extraction directly inside your database using standard SQL. Supported by smart batching for AI functions (previously known as AI Function Acceleration), these functions deliver production scalability and performance. 

[]Now, let’s take a look at these new functions and how to use them.

Classifying text directly in SQL with ai.classify

[]The ai.classify function categorizes text into user-defined classes without requiring manual prompt engineering. You can specify categories as a simple list of labels or provide a list containing label names and descriptions to guide model context.

[]Key capabilities include:

  • []Single-label classification (output_mode => ‘single’) to assign the single best category

  • []Multi-label classification (output_mode => ‘multi’) to return all matching categories

  • []Category descriptions using 2D arrays to provide explicit context for each label

  • []Few-shot prompting by supplying inline examples

  • []Flexible execution modes for individual rows (TEXT), arrays (TEXT[]), and cursors (REFCURSOR)

[]Here’s a quick example showing how you can classify customer feedback directly within a SQL query:

ShareTweetShare
Previous Post

Google Cloud Agentic Architect Certification

Next Post

Building real-time agents for EV charging using Gemma and TPUs

Next Post

Building real-time agents for EV charging using Gemma and TPUs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You might also like

Building real-time agents for EV charging using Gemma and TPUs

November 11, 2026

ai.classify and ai.extract functions in AlloyDB AI

November 11, 2026

Google Cloud Agentic Architect Certification

November 11, 2026

Introducing Gemini for healthcare | Google Cloud Blog

November 10, 2026

How Authentic Brands Group expands creativity with Gemini-powered AuthOS

November 10, 2026

Experimenting with ClusterNetworkPolicy in GKE

November 10, 2026
monotone logo block byte

Stay ahead in the tech world with Tech Insight. Explore in-depth tutorials, unbiased reviews, and the latest news on gadgets, software, and innovations. Join our community of tech enthusiasts today!

Stay Connected

  • Home
  • Tech News
  • Tech Tutorials
  • Reviews
  • Shop
  • About Us
  • Privacy Policy
  • Terms & Conditions

© 2024 Byte Block - Tech Insight: Tutorials, Reviews & Latest News. Made By Huwa.

Welcome Back!

Sign In with Google
Sign In with Linked In
OR

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Sign Up with Google
Sign Up with Linked In
OR

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • Login
  • Sign Up
  • Cart
No Result
View All Result
  • Home
  • Tech News
  • Tech Tutorials
    • Networking
    • Computers
    • Mobile Devices & Tablets
    • Apps & Software
    • Cloud & Servers
    • IT Careers
    • AI
  • Reviews
  • Shop
    • Electronics & Gadgets
    • Apps & Software
    • Online Courses
    • Lifetime Subscription

© 2024 Byte Block - Tech Insight: Tutorials, Reviews & Latest News. Made By Huwa.

Login