3.7 GET_VECTOR_EMBEDDINGS Function Signature 1

This function receives the embedding from a vector provider for a given term.

Syntax

APEX_AI.GET_VECTOR_EMBEDDINGS (
    p_value                 IN CLOB,
    p_service_static_id     IN VARCHAR2 )
    RETURN VECTOR;

Parameters

Parameter Description
p_value The textual value for which the embedding is to be determined.
p_service_static_id The Vector Provider static ID.

Returns

The embedding for the given value.

Example

The following example uses the Vector Provider "MY_ONNX_VECTOR_PROVIDER" to receive an embedding.

DECLARE
    l_vector vector;
BEGIN
    l_vector := apex_ai.get_vector_embeddings(
        p_value             => 'What is Oracle APEX',
        p_service_static_id => 'MY_ONNX_VECTOR_PROVIDER' );
END;