이 페이지에서는 public 및 google_ml 네임스페이스의 함수를 사용하여 예측을 호출하는 방법을 설명합니다. google_ml_integration 확장 프로그램에는 이러한 네임스페이스의 예측 함수가 포함되어 있습니다.
엔드포인트를 등록하지 않고도 Vertex AI에서 호스팅되는 일반 모델과 함께 public 스키마에서 ml_predict_row() 함수를 사용할 수 있습니다. google_ml 스키마의 google_ml.predict_row() 함수는 모델 엔드포인트 관리에 등록된 모든 모델과 함께 사용할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-02(UTC)"],[[["\u003cp\u003eAlloyDB allows online predictions within SQL code using the \u003ccode\u003egoogle_ml.predict_row()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eBefore invoking predictions, you must integrate your database with Vertex AI and grant users permission to execute \u003ccode\u003egoogle_ml.predict_row()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egoogle_ml.predict_row()\u003c/code\u003e function requires you to specify a Vertex AI Model Garden model or a Vertex AI model endpoint with accessible IAM permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe format of the initial argument in \u003ccode\u003egoogle_ml.predict_row()\u003c/code\u003e varies depending on whether you are using a Vertex AI Model Garden model or a Vertex AI endpoint.\u003c/p\u003e\n"],["\u003cp\u003eYou can utilize the \u003ccode\u003ejson_build_object()\u003c/code\u003e function with \u003ccode\u003egoogle_ml.predict_row()\u003c/code\u003e to format function parameters, including using database content as input.\u003c/p\u003e\n"]]],[],null,["# Invoke predictions\n\nThis page describes how to invoke predictions using functions from the `public` and `google_ml` namespaces. The `google_ml_integration` extension includes prediction functions for these namespaces.\n\nYou can use the `ml_predict_row()` function in the `public` schema with any generic model hosted in Vertex AI without registering the endpoint. The `google_ml.predict_row()` function in the `google_ml` schema can be used with any model that has been [registered with Model endpoint management](/alloydb/docs/ai/register-model-endpoint).\n\nTo invoke predictions, select one of the following schemas. \npublic schema google_ml schema\n\nWhat's next\n-----------\n\n- [Learn how to build a smart shopping assistant with AlloyDB, pgvector, and model endpoint management](https://codelabs.developers.google.com/smart-shop-agent-alloydb#0)."]]