Autonomous AI Vector Database

Create an Autonomous AI Vector Database instance, load the embedding model used by the quickstart, and save the credentials and endpoint for the Oracle VecDB Python SDK.

When you finish

You will have an available Autonomous AI Vector Database instance with the all_MiniLM_L12_v2 model loaded. Save these values for the quickstart:

Copy the SDK REST endpoint from the REST URL panel on the Vector Database Console Overview page.

Prerequisites

You need an Oracle Cloud account and permission to create an Autonomous AI Vector Database instance. If you do not have permission, ask an OCI administrator to provision the instance and provide the Vector Database user credentials, Console URL, and SDK REST endpoint. See Welcome to Oracle Cloud Infrastructure for more information.

If you choose Secure access from allowed IPs and VCNs only, make sure your browser and Python environment connect from an allowed IP address or VCN.

1. Quick Start Provisioning an Autonomous AI Vector Database

Use these steps to provision a new Autonomous AI Vector Database instance.

Before you begin, complete these steps as needed:

  1. Open the Oracle Cloud Infrastructure Console by clicking the navigation icon next to Cloud.
  2. Choose your region. See Switching Regions for information about switching regions and working in multiple regions.
  3. From the left navigation menu, select Analytics & AI, and then select Autonomous AI Vector Database.

On the Autonomous AI Vector Database page, complete the following steps:

  1. Select Create Autonomous AI Vector Database.
  2. Provide basic information for the Autonomous AI Vector Database:
    • Display name: Enter a description or other information that helps you identify the resource. The display name does not have to be unique. By default, the display name is a generated 16-character string that matches the database name.
    • Database name: Enter a name that contains only letters and numbers and is no longer than 30 characters. The database name must be unique in the tenancy and region. By default, the database name is a generated 16-character string that matches the display name.
    • Compartment: Select a compartment. See Compartments for information about using and managing compartments.
  3. Configure the database with the ECPU billing model. Choose one of these options:
    • Always Free: Select this option to show Always Free configurations. You can create a free instance only in the tenancy’s home region.
    • Developer: Select this option to show the low-cost fixed-shape configuration for development and testing. It uses 4 ECPUs and 20 GB of storage. When you need scalable production resources, upgrade to a full Autonomous AI Transaction Processing instance with one click.
  4. Create administrator credentials. The user name is read-only. Set and confirm the password for the Autonomous AI Database Admin user. The password must meet Oracle Cloud password complexity requirements. See About User Passwords on Autonomous Database.
  5. Set the user name and password for the Autonomous AI Vector Database user. Use this user to sign in to the Vector Database Console and connect the Python SDK. The password must meet Oracle Cloud password complexity requirements. See About User Passwords on Autonomous Database.
  6. Choose a network access option:
    • Secure access from everywhere
    • Secure access from allowed IPs and VCNs only
  7. Select Create.

The lifecycle state shows Provisioning until the database is available. Provisioning can take a few minutes. Continue when the lifecycle state is Available.

2. Use the Vector Database Console

From the Autonomous AI Vector Database instance details page, click Open Vector Database console. Sign in with the Autonomous AI Vector Database user name and password that you set during provisioning.

You can also open the console from the Database Actions Launchpad. Select Selector to display the navigation menu, then under Vector Database, select Vector Database.

The console Overview page links to common tasks, including loading a model, creating a vector table, adding data, and running a semantic search. For the quickstart, first load its embedding model.

3. Load an embedding model and get the REST URL

The Python quickstart uses integrated embeddings with the all_MiniLM_L12_v2 model. Load this model before running the quickstart. If you load another model, use its exact name in the quickstart’s model value.

  1. In the Vector Database Console, select the Models tab.
  2. Find all_MiniLM_L12_v2 and check its status:
    • If the status is Available, continue to the next section.
    • If the status is Loading, wait until it changes to Available.
    • Otherwise, open the model’s context menu and select Load. Confirm the operation and wait until the status changes to Available.

For more information, see Load a Model Using the Vector Database Console.

Console URL — open in a browser

Save the URL in your browser’s address bar to return to the Vector Database Console.

SDK REST endpoint — use in Configuration

  1. In the Vector Database Console, open the Overview page.
  2. Click the REST URL panel to copy the SDK REST endpoint to the clipboard.
  3. Paste the copied URL into the rest_url value in the Python client’s Configuration.

Use the copied URL with the Vector Database user name and password you set during provisioning. For authentication details, see Connect to Oracle AI Database with Python.

Next steps

Continue with Install the SDK in the quickstart. Use the SDK REST endpoint, Vector Database user name, and password from this guide when you configure the client.