Create vector and/or metadata indexes.

post

http://localhost:8080/ords/pdbdba/_/db-api/stable/vecdb/vector-indexes/

Creates vector and/or metadata indexes. indexParams accepts nested vector and metadata index configuration.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "tableName":"DOCS",
    "indexParams":{
        "vector_index_params":{
            "auto_index":true,
            "organization":"INMEMORY GRAPH",
            "distance_metric":"COSINE",
            "quantization_type":"SCALAR",
            "compression_ratio":4,
            "distribute_params":{
                "distribute_method":"AUTO"
            },
            "advanced_params":{
                "neighbors":32,
                "efConstruction":128,
                "rescore_factor":10,
                "algorithm":"uniform_quantization"
            }
        },
        "metadata_index_params":{
            "auto_index":true,
            "include_paths":[
                "tenant",
                "category"
            ],
            "exclude_paths":[
                "body"
            ]
        },
        "parallel_creation":4
    }
}
Nested Schema : VectorDebugFlags
Type: object
Debug flags to be used to trace vector modules
Show Source
Nested Schema : VectorIndexParams
Type: object
Additional Properties Allowed: true
Nested index configuration for vector and metadata indexes.
Show Source
Example:
{
    "vector_index_params":{
        "auto_index":true,
        "organization":"INMEMORY GRAPH",
        "distance_metric":"COSINE",
        "quantization_type":"SCALAR",
        "compression_ratio":4,
        "distribute_params":{
            "distribute_method":"AUTO"
        },
        "advanced_params":{
            "neighbors":32,
            "efConstruction":128,
            "rescore_factor":10,
            "algorithm":"uniform_quantization"
        }
    },
    "metadata_index_params":{
        "auto_index":true,
        "include_paths":[
            "tenant",
            "category"
        ],
        "exclude_paths":[
            "body"
        ]
    },
    "parallel_creation":4
}
Nested Schema : metadata_index_params
Type: object
Additional Properties Allowed: true
Metadata multi-value index settings and path selectors.
Show Source
Nested Schema : vector_index_params
Type: object
Additional Properties Allowed: true
Vector index settings such as organization, distance metric, distributed HNSW, scalar quantization, and advanced parameters.
Show Source
Nested Schema : exclude_paths
Type: array
Show Source
Nested Schema : include_paths
Type: array
Show Source
Nested Schema : advanced_params
Type: object
Index-family-specific options such as partitions, neighbors, efConstruction, rescore_factor, or algorithm.
Nested Schema : distribute_params
Type: object
Show Source
Security
Back to Top

Response

Supported Media Types

200 Response

Description of the vector index creation job that has been created.
Body ()
Root Schema : VecDBJobItem
Type: object
Show Source
Nested Schema : LinkRelation
Type: object
Show Source

400 Response

The request body included invalid parameters.
Body ()
Root Schema : ORDSErrorResponse
Type: object
Show Source

404 Response

The vector table was not found.
Body ()
Root Schema : ORDSErrorResponse
Type: object
Show Source
Back to Top