Class IndexDatapoint (1.48.0)

IndexDatapoint(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A datapoint of Index.

Attributes

NameDescription
datapoint_id str
Required. Unique identifier of the datapoint.
feature_vector MutableSequence[float]
Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
restricts MutableSequence[google.cloud.aiplatform_v1.types.IndexDatapoint.Restriction]
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
numeric_restricts MutableSequence[google.cloud.aiplatform_v1.types.IndexDatapoint.NumericRestriction]
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
crowding_tag google.cloud.aiplatform_v1.types.IndexDatapoint.CrowdingTag
Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.

Classes

CrowdingTag

CrowdingTag(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Crowding tag is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute.

NumericRestriction

NumericRestriction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

This field allows restricts to be based on numeric comparisons rather than categorical tokens.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Restriction

Restriction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).

Methods

IndexDatapoint

IndexDatapoint(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A datapoint of Index.