Google's AlloyDB Omni now calls local AI models: NZ checks

By DataForge team1 December 20265 min read

Google's AlloyDB Omni can now send SQL queries to Gemma 4 or Qwen models on your own hardware. Here's what NZ firms should test before relying on it.

What Google released

On 24 November, Google posted a walkthrough on its Cloud blog showing AlloyDB Omni sending work to large language models hosted in the same environment as the database. AlloyDB Omni is Google's PostgreSQL-compatible database for infrastructure that customers run themselves. Rob Yavitch, an engineering manager on the AlloyDB Omni team, wrote the post. It registers Gemma 4 and Qwen3.8 as models served through Ollama, an open-source model server, and then calls them from ordinary SQL with the database's ai.generate function. Google's example query reads a table of customer feedback and returns each customer's name with a one-sentence summary written by the local model.

Google's post gives the reason for the design in one line: "Because the database and the model sit in the same local environment, your data never crosses the public internet." IT Brief's report the following day said the feature is aimed at organisations with strict data-locality rules or air-gapped networks. The report also noted that AlloyDB Omni can run in a cloud, in a data centre or on a laptop. Google's sample runs on Google Kubernetes Engine, and IT Brief said the same arrangement could run on premises.

What the setup involves

The sample in Google's post uses AlloyDB Omni 18.4.0 and version 1.9.0 of the AlloyDB Omni Kubernetes operator. The Ollama container serving Gemma 4 (the 12B variant) requests four CPUs and 16GiB of memory. A comment in the deployment file raises the memory to 24GiB for Qwen3.8, and there's a 30GiB volume holding the model files. The database cluster itself asks for two CPUs and 4GiB. No GPU appears anywhere in the sample, and the request timeout is set to 600 seconds. A ten-minute limit suits a CPU-bound model that can take a long time to answer a large batch of rows.

Connecting a model takes more than pointing the database at a URL. Each model is registered with google_ml.create_model as a custom provider and needs its own input and output transform functions. Google's output function removes the reasoning text that Qwen-style models wrap in <think> tags. Swapping models later means rewriting those transforms and re-testing the results.

Google's Gemma 4 and AlloyDB Omni codelab shows a smaller build running in Docker on one machine. The codelab uses the compact gemma4:e2b model to diagnose simulated sensor faults on a forging press. Its claim of zero internet connectivity holds only once the system is running. The install steps pull container images, download the model and clone a GitHub repository. A genuinely air-gapped site has to stage all of those files on the isolated network before the first deployment.

Why NZ firms should pay attention

Most NZ organisations using generative AI on business records send prompts to an API hosted overseas. Any personal information in those prompts brings in Information Privacy Principle 12 of the Privacy Act 2020. According to the Privacy Commissioner's IPP 12 guidance, an agency sending personal information to a recipient outside New Zealand has to be satisfied that the recipient is covered by the Act, will protect the information adequately (for example under model contract clauses), or sits under comparable privacy law. Otherwise the agency needs the person's authorisation, given after they've been told their information may not get the same protection. A model running in an Auckland rack or a local cloud region next to the database keeps the summarising and tagging work onshore, so those offshore checks don't arise for that work.

Running AI inside the database changes who controls AI use. Any account allowed to call ai.generate can pass any column it can read to the model, so database permissions now decide what reaches the model. Database administrators become operators of an AI service, responsible for model versions, memory sizing and response quality. Prompts and outputs may also end up in database logs. Those logs then need the same retention and access rules as the source data.

Google's sample carries shortcuts that shouldn't reach production. There's a hardcoded demo password in the deployment file, and the cluster sets allowExternalIncomingTraffic: true alongside an internal load balancer annotation, as Google's post shows. The Ollama image is pulled with the latest tag. Pinning an exact version stops the model server changing under you without a change record.

Google hasn't published everything a buyer needs. The post doesn't give pricing or licensing for AlloyDB Omni, the operator or the models, and it doesn't say whether the local-model integration is in preview or generally available. Firms should get those answers in writing from Google or their partner before building anything permanent on the feature.

Model quality is a separate question. A 12B model running on four CPUs is far smaller than the hosted models most staff use through chat tools. Small local models can handle narrow jobs such as summarising a support ticket or tagging a complaint by topic. How well they cope with your own data, in your own wording, is something only a test can show. NZ text adds te reo Māori place names, local product codes and industry shorthand that a general model may handle badly.

Practical next steps for NZ firms

  • List candidate tables. Pick a few columns where free text already holds personal or commercially sensitive information, such as complaint notes, service desk tickets or supplier correspondence. Those are the cases where keeping inference onshore earns the extra effort.
  • Compare against your current AI path. For each candidate, record where the data goes today and which IPP 12 basis you rely on. A local model is worth the operating effort only where the current path is hard to justify.
  • Run a bounded pilot. Score a sample of a few hundred rows with Gemma 4 and Qwen3.8, and have staff rate the outputs against summaries written by people. Record run time per batch, because CPU-only inference may not suit large nightly jobs.
  • Lock down access before go-live. Grant ai.generate only to named roles, replace the demo credentials, review the external traffic setting and pin the Ollama and model versions.
  • Decide who owns the model. Put model upgrades, transform changes and quality checks through your normal change process, with a named owner on the database or platform team.
  • Ask Google for the missing terms. Get licensing, support status and pricing confirmed before you commit budget.

If you're weighing in-database AI against a dedicated model server, our local AI server page sets out how we approach private inference on hardware you control. For questions of policy and ownership, our AI consultancy work covers the governance side.

Want to know what this means for your organisation? Our team in Auckland can show you your top three opportunities in a free 30 minute assessment.

Get my free assessment How we help
Get new articles by RSS