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:- How old is too old? → Staleness budget
- Which sources matter more? → Source priorities
- When should we refuse to answer? → Refusal thresholds
Getting the Current Policy
Staleness Budget
Controls when content is considered stale.Configuration
Common Values
Behavior
Whenenforce_staleness: true:
- Stale results marked with
is_stale: true - Warning added to response
- If search request has
include_stale: false, stale results filtered out
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):Refusal Thresholds
Control when Ground refuses to return results due to insufficient evidence.Configuration
Settings
Behavior
When thresholds aren’t met andenforce_refusal: true:
Resetting Policy
Reset all settings to defaults:Best Practices
Start with defaults
Start with defaults
The default policy is a good starting point. Adjust after observing real search behavior.
Use refusal thresholds carefully
Use refusal thresholds carefully
enforce_refusal: true can be frustrating if thresholds are too strict. Start with it disabled and enable once you have sufficient content indexed.Adjust priorities for your use case
Adjust priorities for your use case
If you’re building an API assistant, boost OpenAPI. For a code search tool, boost repos.
Monitor staleness
Monitor staleness
If you see frequent staleness warnings, either increase sync frequency or increase the staleness budget.