Skip to main content

Trust Policy

The trust policy controls how Ground handles search results, including staleness filtering, source prioritization, and refusal thresholds.

Overview

Ground’s trust policy answers:
  1. How old is too old? → Staleness budget
  2. Which sources matter more? → Source priorities
  3. When should we refuse to answer? → Refusal thresholds

Getting the Current Policy

Response:

Staleness Budget

Controls when content is considered stale.

Configuration

Common Values

Behavior

When enforce_staleness: true:
  • Stale results marked with is_stale: true
  • Warning added to response
  • If search request has include_stale: false, stale results filtered out
When enforce_staleness: false:
  • All results included regardless of age
  • No staleness warnings

Source Priorities

Control which source types rank higher in results.

Configuration

How It Works

Source priority is a multiplier applied to the combined search score:

Example Use Cases

API-focused search (boost OpenAPI):
Code-focused search (boost repos):

Refusal Thresholds

Control when Ground refuses to return results due to insufficient evidence.

Configuration

Settings

Behavior

When thresholds aren’t met and enforce_refusal: true:

Resetting Policy

Reset all settings to defaults:

Best Practices

The default policy is a good starting point. Adjust after observing real search behavior.
enforce_refusal: true can be frustrating if thresholds are too strict. Start with it disabled and enable once you have sufficient content indexed.
If you’re building an API assistant, boost OpenAPI. For a code search tool, boost repos.
If you see frequent staleness warnings, either increase sync frequency or increase the staleness budget.