vector
collection.stats
Read facts for one vector collection.
strata vector collection statsdb.vectors.stats(name: 'str') -> 'Any'wire vector_collection_stats
Reads collection-level facts for one vector collection. The current wire response uses the collection-list output with one item.
Status commands return a scalar or compact status payload and do not mutate database state.
To see the complete help for this command, run:
strata vector collection stats --helphelp(db.vectors.stats)
Example
Read a collection's dimension, metric, and size.
strata vector collection create docs 3 --metric cosinestrata vector collection stats docs
_ = db.vectors.create_collection("docs", 3, metric="cosine")db.vectors.stats("docs").dimension
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| collection | string | yes | Collection name. |
| branch | string or null | no | Target branch. Defaults to the executor handle branch. |
| space | string or null | no | Target product space. Defaults to `"default"`. |
Returns
StatusResponse<VectorCollectionInfo>
- dataobject
Shared pagination continuation facts.
- typestring
Errors
Recover by code. Retry policy and commit outcome come from the shipped error registry.
| Code | Retry | Commit outcome |
|---|---|---|
| failed_precondition.engine.runtime_closed | never | not_started |
| not_found.engine.branch | never | not_applicable |
| invalid_argument.engine.product_space | never | not_started |
| invalid_argument.engine.vector_collection | never | not_started |
| invalid_argument.engine.vector_key | never | not_started |
| not_found.engine.vector_collection | never | not_applicable |