Skip to content
AI.info

The Pulse

Google Cloud connects AlloyDB Omni to local language models

AlloyDB Omni can call locally hosted language models directly from SQL, including Gemma 4 and Qwen3.8. Google Cloud published a Kubernetes example using Ollama to deploy and register a model.

Google Cloud connects AlloyDB Omni to local language models

Models on local infrastructure

AlloyDB Omni can now call locally hosted language models directly from SQL, including Gemma 4 and Qwen3.8. The integration keeps prompts, data and model responses within the user’s environment, Google Cloud said in a blog post.

AlloyDB Omni is a downloadable edition of AlloyDB that can run on a customer’s infrastructure, including on-premises. Google describes the database as 100% PostgreSQL-compatible and says it can run in the cloud, in a data center or on a laptop.

The company identifies air-gapped networks and environments with data-locality requirements as potential settings for the integration. Examples include analyzing local logs, summarizing internal documents and running localized chatbots.

Calling a model from SQL

In the setup Google describes, the database calls a local model server from a SQL query. The company says placing the model and database in the same local environment keeps data off the public internet and that local inference reduces network transit time.

AlloyDB Omni can also be paired with cloud-hosted models such as Gemini. Its database features include vector search, built-in AI functions and ScaNN indexing technology, which Google says also powers Google Search.

The post illustrates the local connection with a customer-feedback table. A SQL query uses the built-in ai.generate function to send comments to a registered model and return a short summary alongside each customer name.

A Kubernetes example

Google’s walkthrough uses Google Kubernetes Engine, or GKE, to host both the database and the local model. It assumes a GKE cluster and the Kubernetes tools kubectl and Helm are already in place; the company says the same setup can be used on-premises or elsewhere.

The example uses the AlloyDB Omni Kubernetes operator to deploy the database and enables its machine-learning extension. The sample configuration specifies database version 18.4.0, with two CPUs, 4Gi of memory and a 20Gi data disk.

The model deployment uses Ollama and Gemma 4 from Google DeepMind. The instructions also show how to change the deployment to use Qwen3.8. The Gemma configuration requests four CPUs and 16Gi of memory; a comment in the configuration specifies 24Gi of memory for Qwen3.8. It also requests 30Gi of storage for the model deployment.

Registering the model

After connecting to the database, the walkthrough registers the local model through the google_ml_integration extension. Its script defines transformations for the model’s input and output and registers an endpoint for the model server.

A separate output transformation removes chain-of-thought reasoning that the example says may appear inside tags in the response. Once the model is registered, the final example creates the feedback table, inserts sample comments and calls the model from a SQL client to summarize them.

Sources

  1. Original source · Blog post Google Cloud “AlloyDB Omni integration with local models” cloud.google.com

Companies in this story

In the tracker

Related stories

Explore

More articles