Class: Google::Cloud::VectorSearch::V1::SparseVector

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vectorsearch/v1/data_object.rb

Overview

A sparse vector.

Instance Attribute Summary collapse

Instance Attribute Details

#indices::Array<::Integer>

Returns Required. The corresponding indices for the values.

Returns:

  • (::Array<::Integer>)

    Required. The corresponding indices for the values.



97
98
99
100
# File 'proto_docs/google/cloud/vectorsearch/v1/data_object.rb', line 97

class SparseVector
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#values::Array<::Float>

Returns Required. The values of the vector.

Returns:

  • (::Array<::Float>)

    Required. The values of the vector.



97
98
99
100
# File 'proto_docs/google/cloud/vectorsearch/v1/data_object.rb', line 97

class SparseVector
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end