Skip to content

SearchResultItem

Structure Class

SearchResultItem dataclass

Bases: _SerdeShape

A single result from a SearchVectors operation.

Attributes

item class-attribute instance-attribute
item: dict[str, AttributeValue] | 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 = ...

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