VLINKS key element [WITHSCORES]
Return the neighbors of a specified element in a vector set. The command shows the connections for each layer of the HNSW graph.
VLINKS key element
Use the WITHSCORES option to include similarity scores for each neighbor.
VLINKS key element WITHSCORES
keyis the name of the key that holds the vector set.
elementis the name of the element whose HNSW neighbors you want to inspect.
WITHSCORESincludes similarity scores for each neighbor.
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard ✅ Active-Active |
✅ Standard ✅ Active-Active |
One of the following:
WITHSCORES option.