Data + AI Anywhere: AlloyDB Omni integration with local models
Google’s AlloyDB Omni now integrates with locally hosted LLMs like Gemma 4 and Qwen3.8, enabling agentic AI experiences on-premises or in air-gapped environments while keeping data local.
Google has expanded AlloyDB Omni, its PostgreSQL-compatible database, to support local large language models (LLMs) such as Gemma 4 and Qwen3.8, allowing organizations to run AI workloads entirely within their own infrastructure. The integration enables direct SQL queries to invoke local models, eliminating the need for data to leave the environment and supporting use cases like internal document analysis or chatbots in restricted networks.
The new capability leverages AlloyDB Omni’s built-in AI features, including ScaNN indexing technology, to store and semantically search vector embeddings while processing inference requests locally. This reduces latency and maintains strict data governance, particularly for air-gapped systems or environments with data locality requirements. Users can deploy AlloyDB Omni on-premises, in the cloud, or even on a laptop, ensuring flexibility across diverse infrastructure setups.
To demonstrate the integration, Google provides a Kubernetes-based example using Google Kubernetes Engine (GKE) to host AlloyDB Omni and a local model like Gemma 4 via Ollama. The setup uses the AlloyDB Omni Kubernetes operator for deployment and includes steps to register the model within the database, enabling SQL-based interactions without exposing data externally.
The integration supports built-in AI functions such as ai.generate, allowing users to connect to local models directly from the SQL client. This approach preserves data privacy while enabling advanced capabilities like natural language queries, vector search, and chain-of-thought reasoning—all processed locally without requiring cloud connectivity.