Sync
Intelligently sync files to your vector store with two methods of change detection: Git-based (fastest) and hash-based (most accurate). Only uploads files that have changed since the last sync, making it efficient for large document collections and perfect for CI/CD workflows.
Command
Options
--strategy <strategy>
- Processing strategy:fast
orhigh_quality
(default:fast
)--contextualization
- Enable context preservation for better search results (default:false
)--from-git <ref>
- Git reference for change detection (e.g.,HEAD~1
,main
)--dry-run
- Preview changes without syncing--force
- Sync all files regardless of changes--metadata <json>
- JSON metadata to attach to synced files--ci
- Non-interactive mode for CI/CD environments--parallel <n>
- Number of concurrent operations (default:5
, range: 1-20)
Change Detection
The sync command provides two methods of change detection:
- Git-based (fast): Uses
git diff
to detect changes since a specific commit - Hash-based (accurate): Compares file hashes with stored metadata
Examples
Last updated: July 5, 2025