Citations
Every search result in Ground includes a citation that provides complete provenance information.Citation Fields
| Field | Description | Example |
|---|---|---|
chunk_id | Unique identifier for the chunk | abc123... |
source_id | ID of the source | def456... |
source_name | Human-readable source name | "Stripe API" |
path | File path or URL | /src/api/auth.py |
symbol | Function, class, or section name | authenticate() |
start_line | Starting line number (code only) | 42 |
end_line | Ending line number (code only) | 65 |
version_ref | Version identifier | a1b2c3d (commit SHA) |
language | Programming language or format | python, openapi |
chunk_type | Type of chunk | code, docs, openapi |
Citation Types
Code Citations
For repository sources, citations include file path, line numbers, and commit SHA:Documentation Citations
For HTML documentation, citations include the URL:OpenAPI Citations
For OpenAPI specs, citations include operation details:Using Citations
In LLM Prompts
Include citations in your prompts for grounded responses:For User Display
Show citations to help users verify information:Version Tracking
Ground tracks versions differently by source type:| Source Type | Version Reference |
|---|---|
| Repository | Git commit SHA |
| HTML Docs | Content hash or date |
| OpenAPI | info.version from spec |
- Link to specific code versions
- Detect when documentation changes
- Track API version compatibility