Class CheckGroundingResponse (0.13.1)

CheckGroundingResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for the GroundedGenerationService.CheckGrounding method.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
support_score float
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned. This field is a member of oneof_ _support_score.
cited_chunks MutableSequence[google.cloud.discoveryengine_v1alpha.types.FactChunk]
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
claims MutableSequence[google.cloud.discoveryengine_v1alpha.types.CheckGroundingResponse.Claim]
Claim texts and citation info across all claims in the answer candidate.

Classes

Claim

Claim(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Text and citation info for a claim in the answer candidate.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields