VectorIndex
¶
Source code in docs_src/capo_dynamodb/types/vector_index.py
dimensions
instance-attribute
¶
dimensions: PositiveLongObject
The number of dimensions in each vector.
distance_function
instance-attribute
¶
distance_function: VectorDistanceFunction
The distance function used to calculate similarity between vectors. Valid values: COSINE, EUCLIDEAN, DOT_PRODUCT.
projection
instance-attribute
¶
projection: Projection
Specifies attributes that are copied (projected) from the table into the vector index.
search_schema
instance-attribute
¶
search_schema: NotRequired[SearchSchema]
The search schema that defines partition key and inline filter attributes for the vector index.
vector_attribute
instance-attribute
¶
vector_attribute: VectorAttributeDefinition
The vector attribute configuration for the index.