class
Amazonite::DynamoDB::SearchVectorsInput
- Amazonite::DynamoDB::SearchVectorsInput
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
dynamodb/search_vectors_input.crConstructors
- .new(table_name : String, index_name : String, search_vector : Array(AttributeValue), top_k : Int32, return_consumed_capacity : ReturnConsumedCapacity | Nil = nil, expression_attribute_names : Hash(String, String) | Nil = nil, expression_attribute_values : Hash(String, AttributeValue) | Nil = nil, projection_expression : String | Nil = nil, search_condition_expression : String | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#expression_attribute_names : Hash(String, String) | Nil
One or more substitution tokens for attribute names in an expression.
-
#expression_attribute_names=(expression_attribute_names : Hash(String, String) | Nil)
One or more substitution tokens for attribute names in an expression.
-
#expression_attribute_values : Hash(String, AttributeValue) | Nil
One or more values that can be substituted in an expression.
-
#expression_attribute_values=(expression_attribute_values : Hash(String, AttributeValue) | Nil)
One or more values that can be substituted in an expression.
-
#hash(hasher)
See
Object#hash(hasher) -
#index_name : String
The name of the vector index to search.
-
#index_name=(index_name : String)
The name of the vector index to search.
-
#projection_expression : String | Nil
A string that identifies one or more attributes to retrieve from the index.
-
#projection_expression=(projection_expression : String | Nil)
A string that identifies one or more attributes to retrieve from the index.
- #return_consumed_capacity : ReturnConsumedCapacity | Nil
- #return_consumed_capacity=(return_consumed_capacity : ReturnConsumedCapacity | Nil)
-
#search_condition_expression : String | Nil
A condition expression used to filter the vector search results.
-
#search_condition_expression=(search_condition_expression : String | Nil)
A condition expression used to filter the vector search results.
-
#search_vector : Array(AttributeValue)
The search vector to compare against the indexed vectors.
-
#search_vector=(search_vector : Array(AttributeValue))
The search vector to compare against the indexed vectors.
-
#table_name : String
The name or Amazon Resource Name (ARN) of the table containing the vector index.
-
#table_name=(table_name : String)
The name or Amazon Resource Name (ARN) of the table containing the vector index.
-
#top_k : Int32
The number of most similar results to return.
-
#top_k=(top_k : Int32)
The number of most similar results to return.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
One or more substitution tokens for attribute names in an expression. Use the # character in
an expression to dereference an attribute name.
One or more substitution tokens for attribute names in an expression. Use the # character in
an expression to dereference an attribute name.
One or more values that can be substituted in an expression. Use the : character in an
expression to dereference an attribute value.
One or more values that can be substituted in an expression. Use the : character in an
expression to dereference an attribute value.
The name of the vector index to search. The index must be in the ACTIVE state.
The name of the vector index to search. The index must be in the ACTIVE state.
A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index.
Only attributes projected into the vector index can be retrieved.
A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index.
Only attributes projected into the vector index can be retrieved.
A condition expression used to filter the vector search results. The expression can reference
attributes defined in the vector index search schema, including HASH and INLINE_FILTER key
elements.
Only the equality operator (=) is supported for HASH attributes. Comparison and range
operators are supported for INLINE_FILTER attributes. Only top-level attributes from the
search schema can be referenced.
A condition expression used to filter the vector search results. The expression can reference
attributes defined in the vector index search schema, including HASH and INLINE_FILTER key
elements.
Only the equality operator (=) is supported for HASH attributes. Comparison and range
operators are supported for INLINE_FILTER attributes. Only top-level attributes from the
search schema can be referenced.
The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.
The number of dimensions must match the number of dimensions configured for the vector index.
The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.
The number of dimensions must match the number of dimensions configured for the vector index.
The name or Amazon Resource Name (ARN) of the table containing the vector index.
The name or Amazon Resource Name (ARN) of the table containing the vector index.