CreateVectorIndexActionDict¶
Dictionary Type¶
CreateVectorIndexActionDict
¶
Bases: TypedDict
Dictionary form of CreateVectorIndexAction.
Attributes¶
distance_function
instance-attribute
¶
The distance function used to calculate similarity. Valid values:
COSINE, EUCLIDEAN, DOT_PRODUCT.
index_name
instance-attribute
¶
The name of the vector index. Must be unique within the table.
projection
instance-attribute
¶
projection: Required[Projection | ProjectionDict]
Specifies attributes that are copied (projected) from the table into the vector index.
search_schema
instance-attribute
¶
search_schema: Sequence[SearchSchemaElement | SearchSchemaElementDict] | None
The partition key and inline filter attribute definitions for the vector index.
vector_attribute
instance-attribute
¶
vector_attribute: Required[VectorAttributeDefinition | VectorAttributeDefinitionDict]
The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.