Summary of DBMS_VECTOR Subprograms

The DBMS_VECTOR package simplifies common operations with Oracle AI Vector Search, such as extracting chunks or embeddings from user data, generating text for a given prompt, and reporting on index accuracy.

This table lists the DBMS_VECTOR subprograms and briefly describes them.

Table 12-1 DBMS_VECTOR Package Subprograms

Subprogram Description

ONNX Model Related Procedures:

These procedures enable you to load an ONNX model into Oracle Database and drop the ONNX model.

LOAD_ONNX_MODEL

Loads an ONNX model into the database

DROP_ONNX_MODEL

Drops the ONNX model

Chainable Utility (UTL) Functions:

These functions are a set of modular and flexible functions within vector utility PL/SQL packages. You can chain these together to automate end-to-end data transformation and similarity search operations.

UTL_TO_CHUNKS

Splits data into smaller pieces or chunks

UTL_TO_EMBEDDING and UTL_TO_EMBEDDINGS

Converts data to one or more vector embeddings

UTL_TO_GENERATE_TEXT

Generates text for a prompt (input string)

Credential Helper Procedures:

These procedures enable you to securely manage authentication credentials in the database. You require these credentials to enable access to third-party service providers for making REST calls.

CREATE_CREDENTIAL

Creates a credential name

DROP_CREDENTIAL

Drops an existing credential name

Data Access Functions:

These functions enable you to retrieve data, create index, and perform simple similarity search operations.

CREATE_INDEX

Creates a vector index

REBUILD_INDEX

Rebuilds a vector index

QUERY

Perform a similarity search query

Accuracy Reporting Function:

These functions enable you to determine the accuracy of existing search indexes and to capture accuracy values achieved by approximate searches performed by past workloads.

INDEX_ACCURACY_QUERY

Verifies the accuracy of a vector index

INDEX_ACCURACY_REPORT Captures accuracy values achieved by approximate searches

Note:

DBMS_VECTOR is a lightweight package that does not support text processing or summarization operations. Therefore, the UTL_TO_TEXT and UTL_TO_SUMMARY chainable utility functions and all the chunker helper procedures are available only in the advanced DBMS_VECTOR_CHAIN package.