Syntax
Arguments
input: AVARCHARexpression for text or aFILEexpression for one image or video. See FILE input support.options: An optional constant JSON object. To override the Provider’sdimensionssetting with the nativedashscopeprotocol, usedimension, for examplejson_object('dimension', 512). With theopenaiprotocol (including Model Studio’s OpenAI-compatible endpoint), usedimensions. The model and service must support the requested dimension.
provider and model, see Common calling rules.
Return value
Returns a nullableARRAY<FLOAT>. The service response must include a nonempty vector at index 0. Every element must be a finite FLOAT value. The database treats an invalid response as a row-level error.
Examples
vision_embedding Provider. Pass url directly to embed the URL string (url_text_embedding), or wrap it in a FILE with to_file to embed the image at that URL (image_embedding).