class
Amazonite::DynamoDB::SearchResultItem
- Amazonite::DynamoDB::SearchResultItem
- Reference
- Object
Overview
A single result from a SearchVectors operation.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/search_result_item.crConstructors
- .new(pull : JSON::PullParser)
- .new(item : Hash(String, AttributeValue) | Nil = nil, score : Float64 | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#item : Hash(String, AttributeValue) | Nil
A map of attribute names to
AttributeValueobjects, representing the projected attributes of the item returned by the vector search. -
#item=(item : Hash(String, AttributeValue) | Nil)
A map of attribute names to
AttributeValueobjects, representing the projected attributes of the item returned by the vector search. -
#score : Float64 | Nil
The similarity score for this item relative to the search vector.
-
#score=(score : Float64 | Nil)
The similarity score for this item relative to the search vector.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A map of attribute names to AttributeValue objects, representing the projected attributes of
the item returned by the vector search.
A map of attribute names to AttributeValue objects, representing the projected attributes of
the item returned by the vector search.
The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.
The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.