put-vector-index-fusion
Use the invoke-operation generic command of ossutil to call the PutVectorIndexFusion operation and create a Fusion-mode vector index in a vector bucket.
Fusion Mode is currently in invitational preview and is available only in the Indonesia (Jakarta) region. For creating a vector index in Standard Mode, see put-vector-index.
Permissions
By default, Alibaba Cloud accounts have all permissions, whereas Resource Access Management (RAM) users and RAM roles have no permissions. The Alibaba Cloud account or an administrator must grant permissions through a RAM policy or a bucket policy.
|
API |
Action |
Description |
|
PutVectorIndex |
|
Creates a vector index. |
Command format
ossutil vectors-api invoke-operation --op-name putVectorIndexFusion --method POST --parameters putVectorIndexFusion --bucket value --body valueParameters
Parameter | Type | Description |
--op-name | string | The operation name. Set the value to |
--method | string | The HTTP request method. Set the value to |
--parameters | stringArray | The query parameter. Set the value to |
--bucket | string | The name of the vector bucket. |
--body | string | The request body in JSON format that describes the configuration of the Fusion-mode vector index. For more information about the fields in the body, see the PutVectorIndexFusion API documentation. |
This command calls the PutVectorIndexFusion operation by using the invoke-operation generic command of ossutil.
For more information about the supported global command-line options, see Supported global command-line options.
Usage examples
Create a Fusion-mode vector index named my_index in the vector bucket named examplebucket.
ossutil vectors-api invoke-operation --op-name putVectorIndexFusion --method POST --parameters putVectorIndexFusion --bucket examplebucket --body '{"indexName":"my_index","mode":"fusion","schemaConfiguration":{"fields":[{"name":"text_vector","type":"vector","dataType":"float32","dimension":4,"distanceMetric":"cosine"},{"name":"image_vector","type":"vector","dataType":"float32","dimension":4,"distanceMetric":"cosine"},{"name":"title","type":"string","exactMatch":false,"text":{"enabled":true,"analyzer":"standard","analyzerParameters":{"caseSensitive":false,"delimitWord":false}}},{"name":"category","type":"string","isArray":true},{"name":"year","type":"long"}]}}'