CLI Arguments
Pass these flags when starting theopendata-vector binary. The binary has two
subcommands: vector (read-write) and reader (read-only).
| Flag | Default | Description |
|---|---|---|
--port | 8080 | HTTP server port |
--config | none | Path to the YAML configuration file |
Configuration File
The configuration file is YAML. The generic placeholders used in this reference are:<string>: a regular string<int>: an integer value<float>: a floating-point value<bool>:trueorfalse
[ ] is optional. The default value is shown after | default =.
Read-Write Configuration
Read-Only Configuration
The reader configuration is a subset — it omits all write-specific fields (flush interval, split/merge thresholds, rebalancing, chunk target).<storage_config>
Storage is tagged by type.
- InMemory
- SlateDb
Stores data in memory only. Data is lost on restart. Useful for testing
and development. No additional fields are required.
<object_store_config>
The object store is tagged by type.
- Local filesystem
- AWS S3
- In-memory
<block_cache_config>
The block cache reduces object store reads by caching hot SST blocks in memory
and on local disk. Tagged by type.
<metadata_field_spec>
Defines the schema for metadata attributes attached to vectors. When a schema is
defined, writes with unknown attribute names or type mismatches will be rejected.
- New fields can be added
- Indexing can be enabled on existing fields
- Fields cannot be removed, and types cannot be changed
Distance Metrics
| Metric | Formula | Similarity |
|---|---|---|
L2 | sqrt(sum((a[i] - b[i])²)) | Lower scores = more similar |
DotProduct | sum(a[i] * b[i]) | Higher scores = more similar |
Examples
- Local development
- Production (S3)
- Testing (in-memory)
- Read-only replica
vector.yaml