Skip to content

SearchResultItem

Source code in docs_src/capo_dynamodb/types/search_result_item.py
class SearchResultItem(TypedDict, closed=True):
    item: NotRequired["capo_dynamodb.types.attribute_map.AttributeMap"]
    """<p>A map of attribute names to <code>AttributeValue</code> objects, representing the projected attributes of the item returned by the vector search.</p>"""
    score: "capo_dynamodb.types.score_number.ScoreNumber"
    """<p>The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.</p>"""

item instance-attribute

item: NotRequired[AttributeMap]

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

score instance-attribute

score: ScoreNumber

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