Back to Redis

VDIM

content/commands/vdim.md

latest1.6 KB
Original Source

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

<details open> <summary><code>key</code></summary>

is the name of the key that holds the vector set.

</details>
  • [Vector sets]({{< relref "/develop/data-types/vector-sets" >}})

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |

Return information

{{< multitabs id="vdim-return-info" tab1="RESP2" tab2="RESP3" >}}

One of the following:

-tab-sep-

One of the following:

{{< /multitabs >}}