Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingRequest.
Request message for GroundedGenerationService.CheckGrounding method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer_candidate
def answer_candidate() -> ::String
Returns
- (::String) — Answer candidate to check.
#answer_candidate=
def answer_candidate=(value) -> ::String
Parameter
- value (::String) — Answer candidate to check.
Returns
- (::String) — Answer candidate to check.
#facts
def facts() -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact>
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact>) — List of facts for the grounding check. We support up to 200 facts.
#facts=
def facts=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact>
Parameter
- value (::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact>) — List of facts for the grounding check. We support up to 200 facts.
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact>) — List of facts for the grounding check. We support up to 200 facts.
#grounding_config
def grounding_config() -> ::String
Returns
-
(::String) — Required. The resource name of the grounding config, such as
projects/*/locations/global/groundingConfigs/default_grounding_config
.
#grounding_config=
def grounding_config=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the grounding config, such as
projects/*/locations/global/groundingConfigs/default_grounding_config
.
Returns
-
(::String) — Required. The resource name of the grounding config, such as
projects/*/locations/global/groundingConfigs/default_grounding_config
.
#grounding_spec
def grounding_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec) — Configuration of the grounding check.
#grounding_spec=
def grounding_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec) — Configuration of the grounding check.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec) — Configuration of the grounding check.