class
Amazonite::DynamoDB::CreateVectorIndexAction
- Amazonite::DynamoDB::CreateVectorIndexAction
- Reference
- Object
Overview
A new vector index to be added to a table.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/create_vector_index_action.crConstructors
- .new(index_name : String, vector_attribute : VectorAttributeDefinition, projection : Projection, dimensions : Int64, distance_function : VectorDistanceFunction, search_schema : Array(SearchSchemaElement) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#dimensions : Int64
The number of dimensions in each vector.
-
#dimensions=(dimensions : Int64)
The number of dimensions in each vector.
-
#distance_function : VectorDistanceFunction
The distance function used to calculate similarity.
-
#distance_function=(distance_function : VectorDistanceFunction)
The distance function used to calculate similarity.
-
#hash(hasher)
See
Object#hash(hasher) -
#index_name : String
The name of the vector index.
-
#index_name=(index_name : String)
The name of the vector index.
-
#projection : Projection
Specifies attributes that are copied (projected) from the table into the vector index.
-
#projection=(projection : Projection)
Specifies attributes that are copied (projected) from the table into the vector index.
-
#search_schema : Array(SearchSchemaElement) | Nil
The partition key and inline filter attribute definitions for the vector index.
-
#search_schema=(search_schema : Array(SearchSchemaElement) | Nil)
The partition key and inline filter attribute definitions for the vector index.
- #validate! : Nil
-
#vector_attribute : VectorAttributeDefinition
The attribute that contains vector embeddings.
-
#vector_attribute=(vector_attribute : VectorAttributeDefinition)
The attribute that contains vector embeddings.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The distance function used to calculate similarity. Valid values: COSINE, EUCLIDEAN,
DOT_PRODUCT.
The distance function used to calculate similarity. Valid values: COSINE, EUCLIDEAN,
DOT_PRODUCT.
The name of the vector index. Must be unique within the table.
Specifies attributes that are copied (projected) from the table into the vector index.
Specifies attributes that are copied (projected) from the table into the vector index.
The partition key and inline filter attribute definitions for the vector index.
The partition key and inline filter attribute definitions for the vector index.
The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.
The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.