Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

EMBED.DEDUP.GET

Last updated
EMBED.DEDUP.GET namespace hash
Group
Embeddings
Complexity
O(1)
Arity
3 (exactly, counting the command name)
Flags
read-only, fast
Keys
first 1, last 1, step 1
HotKV Cloud
Performance and Scale
On-Premise
requires the embed-dedup license feature

Embedding de-duplication stores each embedding once per content hash and counts references to it, so the same content embedded by many users or documents is stored, and paid for, only once. You compute the content hash and the embedding; HotKV keeps them in named namespaces. EMBED.DEDUP.GET returns the embedding stored under hash, so you can skip calling the embedding model. In an existing namespace, each call counts as a hit or a miss in EMBED.DEDUP.STATS.

Case RESP2 RESP3
Found Bulk string: the embedding Same
No such hash or namespace Nil bulk string Null

Errors:

  • ERR wrong number of arguments for 'embed.dedup.get' command if the argument count is wrong.
  • NOLICENSE embed-dedup requires a HotKV license. Contact sales@hotkv.com if your license does not include the embed-dedup feature.
127.0.0.1:6379> EMBED.DEDUP.GET org abc123
"vector-bytes"
127.0.0.1:6379> EMBED.DEDUP.GET org def456
(nil)

HotKV-only command. Redis and Valkey have no equivalent.

EMBED.DEDUP.PUT, EMBED.DEDUP.RELEASE, EMBED.DEDUP.STATS, EMBED.DEDUP.PURGE, EMBED.DEDUP.DROP, EMBED.DEDUP.LIST, AI features guide