VDIM
Syntax
VDIM key
- Available since:
- Redis Open Source 8.0.0
- Time complexity:
- O(1)
Return the number of dimensions of the vectors in the specified vector set.
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
Return information
One of the following:
- Integer reply: the number of vector set elements.
- Simple error reply: if the key does not exist.