Class: Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec

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

Overview

Grounding specification.

Defined Under Namespace

Modules: FilteringLevel

Instance Attribute Summary collapse

Instance Attribute Details

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

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

Returns:



350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb', line 350

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.



350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb', line 350

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