---
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
complexity: O(1)
description: Return the dimension of vectors in the vector set.
group: vector_set
hidden: false
linkTitle: VDIM
railroad_diagram: /images/railroad/vdim.svg
since: 8.0.0
summary: Return the dimension of vectors in the vector set.
syntax_fmt: "VDIM key"
title: VDIM
---
Return the number of dimensions of the vectors in the specified vector set.
```shell
VDIM word_embeddings
(integer) 300
```
If the vector set was created using the `REDUCE` option for dimensionality reduction, this command reports the reduced dimension. However, you must still use full-size vectors when performing queries with the `VSIM` command.
## Required arguments
key
is the name of the key that holds the vector set.
## Related topics
- [Vector sets]({{< relref "/develop/data-types/vector-sets" >}})
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis
Cloud | Notes |
|:----------------------|:-----------------|:------|
| ✅ Standard
✅ Active-Active | ✅ Standard
✅ Active-Active | |
## Return information
{{< multitabs id="vdim-return-info"
tab1="RESP2"
tab2="RESP3" >}}
One of the following:
* [Integer reply](../../develop/reference/protocol-spec#integers): the number of vector set elements.
* [Simple error reply](../../develop/reference/protocol-spec#simple-errors): if the key does not exist.
-tab-sep-
One of the following:
* [Integer reply](../../develop/reference/protocol-spec#integers): the number of vector set elements.
* [Simple error reply](../../develop/reference/protocol-spec#simple-errors): if the key does not exist.
{{< /multitabs >}}