vector
collection.list
List vector collections.
strata vector collection listdb.vectors.list_collections() -> 'Page'wire vector_list_collections
Lists vector collections visible in the selected branch and space, including collection dimension, metric, and count facts.
Paginated responses use opaque cursors. Clients should pass the returned cursor back to the same command shape and must not parse cursor contents.
To see the complete help for this command, run:
strata vector collection list --helphelp(db.vectors.list_collections)
Example
List vector collections.
strata vector collection create docs 3 --metric cosinestrata vector collection list
_ = db.vectors.create_collection("docs", 3, metric="cosine")[c.name for c in db.vectors.list_collections()]
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| 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
Page<VectorCollectionInfo, String>
- 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 |