VDIM

Syntax
VDIM key
Available since:
Redis Open Source 8.0.0
Time complexity:
O(1)
Compatibility:
Redis Software and Redis Cloud compatibility

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.

Redis Software and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

One of the following:

RATE THIS PAGE
Back to top ↑