View a markdown version of this page

CreateVectorIndexAction - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

CreateVectorIndexAction

A new vector index to be added to a table.

Contents

Note

In the following list, the required parameters are described first.

Dimensions

The number of dimensions in each vector.

Type: Long

Valid Range: Minimum value of 1.

Required: Yes

DistanceFunction

The distance function used to calculate similarity. Valid values: COSINE, EUCLIDEAN, DOT_PRODUCT.

Type: String

Valid Values: COSINE | DOT_PRODUCT | EUCLIDEAN

Required: Yes

IndexName

The name of the vector index. Must be unique within the table.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 255.

Pattern: [a-zA-Z0-9_.-]+

Required: Yes

Projection

Specifies attributes that are copied (projected) from the table into the vector index.

Type: Projection object

Required: Yes

VectorAttribute

The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.

Type: VectorAttributeDefinition object

Required: Yes

SearchSchema

The partition key and inline filter attribute definitions for the vector index.

Type: Array of SearchSchemaElement objects

Array Members: Minimum number of 1 item.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: