Skip to content

DynamoDB  >  Structures  >  SearchResultItem

SearchResultItem

Structure Class

SearchResultItem dataclass

A single result from a SearchVectors operation.

Attributes

item class-attribute instance-attribute
item: dict[str, AttributeValue] | None = None

A map of attribute names to AttributeValue objects, representing the projected attributes of the item returned by the vector search.

score class-attribute instance-attribute
score: float = 0

The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.