Store Commands
Thekdx store command provides extended operations for working with document stores beyond basic CRUD operations.
Available Commands
| Command | Description |
|---|---|
upload | Upload a file to a document store |
watch | Monitor document processing progress |
stats | Show store statistics |
reindex | Trigger store reindexing |
Upload Documents
Upload files (PDF, images, documents) to a document store for processing.Parameters
| Parameter | Description |
|---|---|
store-ref | Store reference in format org/store-name:version |
file-path | Path to the file to upload |
Examples
Output
kdx store watch to monitor processing.
Watch Processing Progress
Monitor a document family as it progresses through the processing pipeline.Flags
| Flag | Default | Description |
|---|---|---|
--label | PROCESSED | Target label to wait for |
--timeout | 600 | Timeout in seconds |
--poll-interval | 3 | Poll interval in seconds |
Processing Labels
Documents typically progress through these labels:| Label | Description |
|---|---|
PREPARED | Document parsed and prepared |
FIRST-PASS | Initial LLM extraction complete |
LABELED | Second pass extraction complete |
PROCESSED | Final transformation complete |
Examples
Output
The watch command shows real-time progress:Error Detection
The watch command immediately detects processing failures:Store Statistics
View statistics for a document store.Example
Output
Reindex Store
Trigger a reindexing operation for a store.Flags
| Flag | Description |
|---|---|
--force | Force reindex even if already in progress |
Example
Complete Upload and Monitor Workflow
Here’s a complete example workflow for uploading and monitoring a document:Troubleshooting
File Already Exists
Store Not Found
org/store-name:version
Processing Timeout
- Increase timeout with
--timeout - Check if document is still processing with
kdx store watch - Large documents may take longer to process
