Class: Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/match_service.rb
Overview
A neighbor of the query vector.
Instance Attribute Summary collapse
-
#datapoint ⇒ ::Google::Cloud::AIPlatform::V1::IndexDatapoint
The datapoint of the neighbor.
-
#distance ⇒ ::Float
The distance between the neighbor and the dense embedding query.
-
#sparse_distance ⇒ ::Float
The distance between the neighbor and the query sparse_embedding.
Instance Attribute Details
#datapoint ⇒ ::Google::Cloud::AIPlatform::V1::IndexDatapoint
Returns The datapoint of the neighbor. Note that full datapoints are returned only when "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" fields are populated.
125 126 127 128 |
# File 'proto_docs/google/cloud/aiplatform/v1/match_service.rb', line 125 class Neighbor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#distance ⇒ ::Float
Returns The distance between the neighbor and the dense embedding query.
125 126 127 128 |
# File 'proto_docs/google/cloud/aiplatform/v1/match_service.rb', line 125 class Neighbor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sparse_distance ⇒ ::Float
Returns The distance between the neighbor and the query sparse_embedding.
125 126 127 128 |
# File 'proto_docs/google/cloud/aiplatform/v1/match_service.rb', line 125 class Neighbor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |