Metadata associated with a query match.
TFSimilarity.indexer.Lookup(
rank: int,
distance: float,
label: Optional[int] = dataclasses.field(default=None),
embedding: Optional[np.ndarray] = dataclasses.field(default=None),
)
rank | Rank of the match with respect to the query distance. |
distance | The distance from the match to the query. |
label | The label associated with the match. Default None. |
embedding | The embedded match vector. Default None. |
data | The original Tensor representation of the match result. Default None. |
__eq__(
other
) -> bool
Return self==value.
data | None |
embedding | None |
label | None |