content/commands/vemb.md
Return the approximate vector associated with a given element in the vector set.
VEMB word_embeddings SQL
1) "0.18208661675453186"
2) "0.08535309880971909"
3) "0.1365649551153183"
4) "-0.16501599550247192"
5) "0.14225517213344574"
... 295 more elements ...
Vector sets normalize and may quantize vectors on insertion. VEMB reverses this process to approximate the original vector by de-normalizing and de-quantizing it.
To retrieve the raw internal representation, use the RAW option:
VEMB word_embeddings apple RAW
1) int8
2) "\xf1\xdc\xfd\x1e\xcc%E...\xde\x1f\xfbN" # artificially shortened for this example
3) "3.1426539421081543"
4) "0.17898885905742645"
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 vector you want to retrieve.
</details>returns the raw vector data, its quantization type, and metadata such as norm and range.
</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="vemb-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
fp32, bin, or q8.-tab-sep-
One of the following:
fp32, bin, or q8.{{< /multitabs >}}