You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,6 +344,26 @@ Semantic chunking uses sentence transformers to identify natural break points in
344
344
345
345
**Note**: Semantic chunking uses sentence-transformers for chunking decisions, but the resulting chunks are embedded using your collection's embedding model (e.g., nomic-embed-text) for search operations.
346
346
347
+
Additional notes:
348
+
349
+
- Advanced semantic parameters are fully supported via flags in the CLI in addition to the common ones:
- Completion: the CLI provides completion for `--chunking-strategy` (includes `Semantic`). The `--semantic-model` value is free-form (no static suggestions); numeric flags disable file completion.
### Environment Variable Substitution in YAML Files
348
368
349
369
The CLI supports environment variable substitution in YAML files using the `{{ENV_VAR_NAME}}` syntax. This allows you to use environment variables directly in your configuration files:
@@ -368,6 +388,7 @@ When you run `./maestro-k create vector-db config.yaml`, the CLI will:
368
388
3. Process the YAML file with the substituted values
369
389
370
390
**Features**:
391
+
371
392
- **Automatic substitution**: All `{{ENV_VAR_NAME}}` placeholders are replaced before YAML parsing
372
393
- **Error handling**: Clear error messages if required environment variables are missing
373
394
- **Verbose logging**: Shows which environment variables are being substituted (when using `--verbose`)
@@ -541,6 +562,7 @@ The CLI provides resource-based create commands for vector databases, collection
541
562
```
542
563
543
564
**Supported Override Flags**:
565
+
544
566
- `--type`: Override database type (milvus, weaviate)
545
567
- `--uri`: Override connection URI
546
568
- `--collection-name`: Override collection name
@@ -558,6 +580,13 @@ The CLI provides resource-based create commands for vector databases, collection
Copy file name to clipboardExpand all lines: cli/src/commands.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -380,4 +380,12 @@ func init() {
380
380
381
381
// Add flags to collection create command
382
382
collectionCreateCmd.Flags().StringVar(&collectionEmbedding, "embedding", "default", "Embedding model to use for the collection")
383
+
// Expose chunking flags here as well (kept in sync with create_collection.go)
384
+
collectionCreateCmd.Flags().StringVar(&collectionChunkStrategy, "chunking-strategy", "None", "Chunking strategy to use for the collection (None, Fixed, Sentence, Semantic)")
385
+
collectionCreateCmd.Flags().IntVar(&collectionChunkSize, "chunk-size", 0, "Chunk size in characters (optional; defaults may vary by strategy)")
386
+
collectionCreateCmd.Flags().IntVar(&collectionChunkOverlap, "chunk-overlap", 0, "Chunk overlap in characters (optional)")
387
+
// Semantic-specific parameters
388
+
collectionCreateCmd.Flags().StringVar(&semanticModel, "semantic-model", "", "Semantic chunking model identifier (e.g., all-MiniLM-L6-v2)")
cmd.Flags().StringVar(&collectionEmbedding, "embedding", "default", "Embedding model to use for the collection")
88
-
cmd.Flags().StringVar(&collectionChunkStrategy, "chunking-strategy", "None", "Chunking strategy to use for the collection (None, Fixed, Sentence)")
89
-
cmd.Flags().IntVar(&collectionChunkSize, "chunk-size", 0, "Chunk size in characters (optional, defaults to 512 when strategy != None)")
92
+
cmd.Flags().StringVar(&collectionChunkStrategy, "chunking-strategy", "None", "Chunking strategy to use for the collection (None, Fixed, Sentence, Semantic)")
93
+
cmd.Flags().IntVar(&collectionChunkSize, "chunk-size", 0, "Chunk size in characters (optional; defaults may vary by strategy)")
90
94
cmd.Flags().IntVar(&collectionChunkOverlap, "chunk-overlap", 0, "Chunk overlap in characters (optional)")
0 commit comments