AI Cloud Architect

Data + AI Anywhere: AlloyDB Omni integration with local models

GoogleHow-to by Rob YavitchGoogle Cloud Blog (AI & machine learning)

Open models like Gemma 4 from Google DeepMind are a great option to keep your data local. But how can a local AI model integrate with on-premises data? AlloyDB Omni, Google’s 100% PostgreSQL-compatible database that runs anywhere, now integrates with locally hosted large language models (LLMs). With AlloyDB Omni, you can build agentic experiences on your own infrastructure and on your own terms. Whether it’s in the cloud, in your datacenter, or even on your laptop, you can have data plus AI…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

AlloyDB Omni can now call locally hosted LLMs such as Gemma 4 and Qwen3.8 directly from SQL, so prompts and data stay in the customer's environment.

Who it is for

Architects running data on-premises or in air-gapped networks who need LLM features next to their PostgreSQL data.

Key points

  • Setup uses Kubernetes with the AlloyDB Omni operator, Ollama for the model, and a google_ml_integration model registration.
  • The example runs Gemma 4 (gemma4:12b); Qwen3.8 is an alternative in the same steps.
  • The post gives no claims about performance or cost.

The same at other vendors

Different approach

MicrosoftAnnouncement

Foundry Local is now Generally Available

AI:Both run models locally to keep data in-house, but Foundry Local is a standalone on-device runtime rather than a database feature.

Different approach

MicrosoftBlog post

PostgreSQL on Azure supercharged for AI

AI:Both let SQL calls reach LLMs from a database, but Azure calls cloud-hosted Foundry models while AlloyDB Omni keeps models local.