This page shows you how to install AlloyDB Omni and integrate
AlloyDB AI.
AlloyDB AI
is a suite of features included with AlloyDB Omni that let you
build enterprise generative AI applications. For more information about the
AI/ML functionality of AlloyDB, see
Build generative AI applications.
AlloyDB Omni with AlloyDB AI lets you query remote ML models to work with online predictions and text embeddings generated from ML models. AlloyDB Omni with AlloyDB AI can also process vector embeddings from other content such as an image, for example, if you use the google_ml.predict_row interface and do the translation yourself in the query.
Based on where you want to install AlloyDB Omni with AlloyDB AI, select one of the following options:
Verify AlloyDB Omni with AlloyDB AI installation
To verify your installation is successful and uses model prediction, enter the following:
In the previous query, the embedding() call generates embeddings for the input text AlloyDB AI.
array_dims returns the dimensions of the array returned by embedding().
Since the text-embedding-005 model returns an output with 768 dimensions, the output is [768].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eAlloyDB Omni includes AlloyDB AI, a suite of features for building enterprise generative AI applications.\u003c/p\u003e\n"],["\u003cp\u003eAlloyDB Omni with AlloyDB AI enables querying remote ML models for online predictions and text embeddings.\u003c/p\u003e\n"],["\u003cp\u003eYou can use \u003ccode\u003egoogle_ml.predict_row\u003c/code\u003e to process vector embeddings from various content types.\u003c/p\u003e\n"],["\u003cp\u003eInstallation can be verified by creating the \u003ccode\u003egoogle_ml_integration\u003c/code\u003e extension and querying the dimensions of text embeddings with \u003ccode\u003eembedding()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eVertex AI model support is governed by Vertex AI model versioning and lifecycle guidelines, which should be reviewed for stable versions.\u003c/p\u003e\n"]]],[],null,[]]