Gemini Enterprise for Customer Experience V1BETA API - Class Google::Cloud::Ces::V1beta::DataStoreTool::GroundingConfig (v0.1.0)

Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::DataStoreTool::GroundingConfig.

Grounding configuration.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disabled

def disabled() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether grounding is disabled.

#disabled=

def disabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether grounding is disabled.
Returns
  • (::Boolean) — Optional. Whether grounding is disabled.

#grounding_level

def grounding_level() -> ::Float
Returns
  • (::Float) — Optional. The groundedness threshold of the answer based on the retrieved sources. The value has a configurable range of [1, 5]. The level is used to threshold the groundedness of the answer, meaning that all responses with a groundedness score below the threshold will fall back to returning relevant snippets only.

    For example, a level of 3 means that the groundedness score must be 3 or higher for the response to be returned.

#grounding_level=

def grounding_level=(value) -> ::Float
Parameter
  • value (::Float) — Optional. The groundedness threshold of the answer based on the retrieved sources. The value has a configurable range of [1, 5]. The level is used to threshold the groundedness of the answer, meaning that all responses with a groundedness score below the threshold will fall back to returning relevant snippets only.

    For example, a level of 3 means that the groundedness score must be 3 or higher for the response to be returned.

Returns
  • (::Float) — Optional. The groundedness threshold of the answer based on the retrieved sources. The value has a configurable range of [1, 5]. The level is used to threshold the groundedness of the answer, meaning that all responses with a groundedness score below the threshold will fall back to returning relevant snippets only.

    For example, a level of 3 means that the groundedness score must be 3 or higher for the response to be returned.