content/commands/vlinks.md
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
is the name of the key that holds the vector set.
</details> <details open> <summary><code>element</code></summary>is the name of the element whose HNSW neighbors you want to inspect.
</details>includes similarity scores for each neighbor.
</details>| 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> | |
{{< multitabs id="vlinks-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
WITHSCORES option.-tab-sep-
One of the following:
WITHSCORES option.WITHSCORES option.{{< /multitabs >}}