AlloyDB AI 是 AlloyDB Omni 附带的一套功能,可让您构建企业生成式 AI 应用。如需详细了解 AlloyDB 的 AI/ML 功能,请参阅构建生成式 AI 应用。
借助 AlloyDB Omni 和 AlloyDB AI,您可以查询远程机器学习模型,以使用机器学习模型生成的在线预测和文本嵌入。结合使用 AlloyDB Omni 和 AlloyDB AI 还可以处理来自其他内容(例如图片)的向量嵌入,例如,如果您使用 google_ml.predict_row 接口并在查询中自行进行转换。
根据您要将 AlloyDB Omni with AlloyDB AI 安装在何处,选择以下选项之一:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-03。"],[[["AlloyDB Omni with AlloyDB AI enables users to build enterprise generative AI applications and query remote ML models."],["AlloyDB AI, a feature suite within AlloyDB Omni, allows for online predictions and the generation of text embeddings from ML models."],["AlloyDB Omni can process vector embeddings from diverse content like images, using the `google_ml.predict_row` interface."],["A successful installation of AlloyDB Omni with AlloyDB AI can be verified by running a query that uses the `embedding()` function to generate text embeddings, using the `CREATE EXTENSION IF NOT EXISTS google_ml_integration CASCADE;` command."],["The example query, `SELECT array_dims(embedding('text-embedding-005', 'AlloyDB AI')::real[]);`, shows how to use the `embedding()` function to get vector dimensions for text inputs."]]],[]]