Class: Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::GroundingSpec

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

Overview

Grounding specification.

Defined Under Namespace

Modules: FilteringLevel

Instance Attribute Summary collapse

Instance Attribute Details

#filtering_level::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::GroundingSpec::FilteringLevel

Returns Optional. Specifies whether to enable the filtering based on grounding score and at what level.

Returns:



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 392

class GroundingSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Level to filter based on answer grounding.
  module FilteringLevel
    # Default is no filter
    FILTERING_LEVEL_UNSPECIFIED = 0

    # Filter answers based on a low threshold.
    FILTERING_LEVEL_LOW = 1

    # Filter answers based on a high threshold.
    FILTERING_LEVEL_HIGH = 2
  end
end

#include_grounding_supports::Boolean

Returns Optional. Specifies whether to include grounding_supports in the answer. The default value is false.

When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.

Returns:

  • (::Boolean)

    Optional. Specifies whether to include grounding_supports in the answer. The default value is false.

    When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 392

class GroundingSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Level to filter based on answer grounding.
  module FilteringLevel
    # Default is no filter
    FILTERING_LEVEL_UNSPECIFIED = 0

    # Filter answers based on a low threshold.
    FILTERING_LEVEL_LOW = 1

    # Filter answers based on a high threshold.
    FILTERING_LEVEL_HIGH = 2
  end
end