Set a Vertex Grounding Check Score Policy Around corroborateContent
Google Cloud corroborateContent returns an overall corroborationScore and extracted claims with per-claim scores and supporting fact indexes. Its citationThreshold controls which claims are returned, while a separate application policy defines overall acceptance. This guide separates provider filtering from a versioned release decision, preserves omitted-claim risk, and tests the response before grounded content reaches a user or downstream action.

Google Cloud's corroborateContent method returns two kinds of evidence: an overall corroborationScore and extracted claims with their own scores and supporting fact indexes. The request's citationThreshold controls which claims come back. Application policy owns the overall acceptance rule. A production route needs a separate, versioned decision that says when content can be released, withheld for review, or blocked. It also needs a distinct checker-error outcome.
TL;DR
- Call the current
corroborateContentmethod with the content and the exact facts used for grounding. - Treat
citationThresholdas a filter on returned claims. Define the application's overall pass threshold separately. - Evaluate the overall score and returned claim scores together. Then check coverage expectations and missing evidence against use-case policy.
- Preserve provider evidence and the local release decision separately, then test low-score and omitted-claim fixtures.
corroborateContent returns scores and claim evidence
Google's current `corroborateContent` REST reference defines POST https://{service-endpoint}/v1/{parent}:corroborateContent, where parent uses projects/{project}/locations/{location}. The request can contain input content plus optional facts[] and parameters. The page says text is the supported content format at present.
A successful response includes corroborationScore, documented on a zero-to-one range with one representing the highest confidence. It can also include extracted claims[]. Each claim carries a score and factIndexes[] identifying supporting facts. Its start and end indexes point into the input text. This structure gives an application a document-level signal and claim-level evidence.
The method currently requires aiplatform.ragCorpora.get on the parent resource. Keep that provider authorization result separate from the semantic policy result. A permission failure means the check failed to run and leaves the content's grounding status unknown.
citationThreshold filters returned claims
The method's Parameters schema describes citationThreshold precisely: only claims with a citation score larger than the threshold are returned. That setting changes the claims visible in the response. A separate application policy establishes whether the whole response passes its release gate.
Suppose a policy sends citationThreshold of 0.8. A returned claim above that value has met the provider's response filter. A lower-scored extracted claim may be absent from claims[]. The application therefore needs to know which threshold was sent and avoid interpreting an empty array as proof that every statement was strongly supported. Empty can mean that no extracted claim cleared the filter.
My blunt opinion is that naming this field acceptanceThreshold in application code is a serious design error. The name would lie about the provider contract and invite a green check mark on incomplete evidence. This article extends the grounding layer in LLM output validation patterns by defining the release decision around the returned scores.
The acceptance rule belongs in local policy
Create a policy object for each use case and content class. It should contain the selected Google Cloud project and location, the submitted citation threshold, a minimum overall corroboration score if the use case requires one, claim-level and evidence-coverage handling, plus the allowed outcomes. Give the object an owner, version, activation time, and rollback reference.
The release evaluator should first verify that the API call completed. Expected response fields must also be present and parseable. It can then evaluate corroborationScore against the local rule. Inspect each returned claim's score and supporting fact indexes. A claim pointing outside the submitted fact array is malformed evidence. Missing or unavailable facts should produce a distinct state rather than a manufactured low score. The same rule applies to stale facts.
Use-case policy changes the correct outcome. A draft answer for a human analyst may enter a review queue at a middling score. Content that triggers an automated external action needs an independent authorization gate even after grounding checks pass. The LLM response schema validation guide covers shape checks that should run before semantic interpretation.
Fact quality sets the ceiling
The provider evaluates the input content against supplied facts. Google's official Fact schema includes a retrieval query, title, source URI, summary, score, and chunk metadata when present. It also warns that the meaning and range of the fact score depend on the underlying vector database and metric. That retrieval score should never be compared mechanically with a corroboration score as if both scales meant the same thing.
Preserve each fact's source URI and a stable content digest where the application can provide one. Record the retrieval time, corpus or index version, query, and rank outside the provider object if those fields matter to your review. A high corroboration score against an outdated or irrelevant fact set still leaves a source-quality problem.
Facts also need deterministic ordering because claim factIndexes[] refer to positions in the submitted array. Store the exact ordered fact manifest beside the response. Re-sorting facts in a logging pipeline breaks the link between claim and support.
Coverage requires an explicit check
A returned claim includes inclusive startIndex and exclusive endIndex offsets into the input text. Use those ranges to highlight what the provider extracted and scored. The unhighlighted spans still require a policy decision. They may be connective language, or they may contain a material assertion absent from the returned claim set.
On the review screen, render the input paragraph in black text and place a pale blue underline beneath every returned claim span. Put the claim score in a small badge at the right margin. Any sentence with no underline should remain visually obvious instead of disappearing behind one overall green score.
The application can require expected claim coverage for tightly structured content, but it should avoid inventing a universal percentage without evaluation data. A safer initial rule is to hold responses when the method returns no claims for content that the application knows contains factual assertions. Record that as no_returned_claims, alongside the submitted citationThreshold, rather than calling it fully grounded or ungrounded.
Evidence and decision records stay separate
Store the raw provider response or a controlled representation with corroborationScore, every returned claim, indexes, scores, and supporting fact indexes. Preserve the request parent, content digest, ordered fact manifest, citationThreshold, method name, timestamp, and provider correlation fields available to the client.
Add a separate local decision record containing the authenticated subject or agent, use case, content class, policy version, comparison results, outcome, and stable reason codes. Useful outcomes include release, human review, block, and checker error. A provider timeout or malformed response should land in checker-error states. A permission denial should do the same. They should never inherit the last successful score.
The AI audit log schema offers a base event model. Keep original numeric values as numbers and preserve the policy's comparison operator. Avoid rounding before evaluation.
A fixture should expose threshold mistakes
Start with a fixed paragraph and a small, ordered fact set whose URIs and summaries are stable. Capture the provider response used as a contract fixture, then use a stub for deterministic release-policy tests. The stub should reproduce the documented response shape without pretending to validate Google's scoring model.
Test an overall score below the local minimum and a score exactly on the boundary. Add returned claims above and below the claim-level policy. Send a high citationThreshold that yields no claims, followed by a lower value that returns claim evidence for the same content. The policy must avoid turning the first empty array into an automatic pass.
Add out-of-range fact indexes and overlapping claim spans. Include absent scores, an unknown response field, and a permission failure on the parent resource. Include a high overall score with one material sentence outside every returned claim span. Confirm that human-review and block outcomes withhold the content from downstream actions. This is a semantic gate around provider evidence, rather than a claim that any score certifies truth.
DeepInspect
DeepInspect can inspect authenticated HTTP AI traffic deliberately routed through its proxy and apply a local response policy before content is released on that path. It can bind the supplied user or agent identity, content classification, provider evidence, and policy version to a release, review, block, or checker-error decision, then preserve that decision for audit.
Google remains responsible for generating corroborateContent scores and claim evidence. The application owns fact retrieval, source quality, checker invocation, and downstream tool authorization. Direct traffic and local processing remain outside DeepInspect's enforcement boundary, including paths that bypass the configured proxy.
Book a technical deep dive at deepinspect.ai.
Frequently asked questions
- Is citationThreshold the overall grounding pass score?
No. Google's current method reference says
citationThresholdcontrols which claims are returned, specifically claims with citation scores larger than the threshold. Overall acceptance belongs to application policy and can considercorroborationScoreand returned claims. Coverage expectations and fact quality can also affect the decision for the use case.- What does corroborationScore represent?
The response field is the method's overall confidence score for corroborating the content. Google documents a range from zero to one, with one indicating the highest confidence. Treat it as provider evidence rather than a verdict. Your application defines the consequence of a value under a named, versioned policy.
- Does an empty claims array mean the content passed?
An empty returned set provides insufficient evidence for a pass. The submitted
citationThresholdmay have filtered lower-scored claims from the response, or the method may have extracted no claims. Record the threshold and use a distinct state such asno_returned_claimswhen factual content was expected.- Can a high grounding score authorize a tool action?
Grounding and authorization answer different questions. A score can indicate corroboration against supplied facts. A downstream tool action still needs an identity-bound policy check on the caller and tool. That check must also cover the arguments and target in the current context before execution.