DBMS_VECTOR
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 or an image, creating a vector index, or 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 AI Database and drop the ONNX model. |
|
|
Loads an ONNX model into the database |
|
| Loads an ONNX model from object storage into the database | |
|
Drops the ONNX model |
|
| INMEMORY_ONNX_MODEL |
Controls the in-memory sharing of initializers for an ONNX model with external initializers within the database |
|
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. |
|
|
Converts text or an image to one or more vector embeddings |
|
|
Generates text for a prompt (input string) or an image |
|
|
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. |
|
|
Creates a credential name |
|
|
Drops an existing credential name |
|
|
Data Access Functions: These functions enable you to retrieve data, create index, and perform simple similarity search operations. |
|
|
Creates a vector index |
|
|
Rebuilds a vector index |
|
|
Describes the status of a vector index creation |
|
|
Enables the Checkpoint feature for a vector index user and index name |
|
|
Disables the Checkpoint feature for a vector index user and index name |
|
|
Determines the vector memory size that is needed for a vector index |
|
|
Performs a similarity search query |
|
|
Reorders search results for a more relevant output |
|
|
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. |
|
|
Verifies the accuracy of a vector index |
|
|
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.