invoke(
self,
input: str,
config: Optional[RunnableConfig] = None
) ->| Name | Type | Description |
|---|---|---|
input* | str | |
config | Optional[RunnableConfig] | Default: None |
Calls the Vertex Check Grounding API for a given answer candidate and a list of documents (claims) to validate whether the set of claims support the answer candidate.
The candidate answer to be evaluated for grounding.
Runnable configuration containing documents in
config["configurable"]["documents"]. The documents are used as
grounding facts and will be converted to
google.cloud.discoveryengine_v1alpha.types.GroundingFact objects.
Supports up to 200 facts.