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
| Setting | Description |
|---|---|
staleness_budget_seconds | Seconds since sync before content is stale |
enforce_staleness | Whether to filter stale results |
Common Values
| Days | Seconds | Use Case |
|---|---|---|
| 7 | 604800 | Fast-changing APIs |
| 14 | 1209600 | Active development |
| 30 | 2592000 | Default, stable docs |
| 90 | 7776000 | Archival content |
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:| Priority | Effect |
|---|---|
| > 1.0 | Boosted in ranking |
| 1.0 | Neutral |
| < 1.0 | Penalized in ranking |
| 0.0 | Effectively filtered out |
Example Use Cases
API-focused search (boost OpenAPI):Refusal Thresholds
Control when Ground refuses to return results due to insufficient evidence.Configuration
Settings
| Setting | Description |
|---|---|
min_evidence_count | Minimum number of results required |
min_evidence_score | Minimum score for top result |
enforce_refusal | Whether to enforce these thresholds |
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.