Sources
Sources are the foundation of Ground. They represent the repositories and documentation you want to index and search.Source Types
Repository Sources (repo)
Index code from Git repositories with language-aware chunking.
branch: Git branch to index (default:main)include_patterns: Glob patterns for files to includeexclude_patterns: Glob patterns for files to exclude
Documentation Sources (docs)
Index documentation from websites or API specifications.
HTML Documentation
OpenAPI Specifications
Source Status
| Status | Description |
|---|---|
pending | Source created but never synced |
syncing | Sync job currently running |
synced | Successfully synced |
error | Last sync failed |
API Operations
Create Source
List Sources
Get Source
Update Source
Delete Source
Trigger Sync
Best Practices
Use specific include/exclude patterns
Use specific include/exclude patterns
Filter out generated files, tests, and dependencies to keep the index focused and efficient.
Set up regular syncs
Set up regular syncs
Keep your sources fresh by syncing regularly. Stale sources show warnings in search results.
Use OpenAPI for API documentation
Use OpenAPI for API documentation
OpenAPI specs provide structured, version-tracked API information that’s easier to search accurately.