Class: Google::Cloud::DiscoveryEngine::V1::RankingRecord

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

Overview

Record message for RankService.Rank method.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

Returns:

  • (::String)

    The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.



46
47
48
49
# File 'proto_docs/google/cloud/discoveryengine/v1/rank_service.rb', line 46

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

#id::String

Returns The unique ID to represent the record.

Returns:

  • (::String)

    The unique ID to represent the record.



46
47
48
49
# File 'proto_docs/google/cloud/discoveryengine/v1/rank_service.rb', line 46

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

#score::Float

Returns The score of this record based on the given query and selected model.

Returns:

  • (::Float)

    The score of this record based on the given query and selected model.



46
47
48
49
# File 'proto_docs/google/cloud/discoveryengine/v1/rank_service.rb', line 46

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

#title::String

Returns The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

Returns:

  • (::String)

    The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.



46
47
48
49
# File 'proto_docs/google/cloud/discoveryengine/v1/rank_service.rb', line 46

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