EMBED.DEDUP.RELEASE
EMBED.DEDUP.RELEASE namespace hash
- Group
- Embeddings
- Complexity
- O(1)
- Arity
- 3 (exactly, counting the command name)
- Flags
- write, 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.RELEASE lowers the reference count of hash by 1,
for example when a document that used it is deleted. When the count reaches
zero, the embedding is removed.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Reference released | Integer 1 |
Same |
| No such hash or namespace | Integer 0 |
Same |
Errors:
ERR wrong number of arguments for 'embed.dedup.release' commandif the argument count is wrong.NOLICENSE embed-dedup requires a HotKV license. Contact sales@hotkv.comif your license does not include theembed-dedupfeature.
Examples
Section titled “Examples”127.0.0.1:6379> EMBED.DEDUP.RELEASE org abc123(integer) 1127.0.0.1:6379> EMBED.DEDUP.RELEASE org abc123(integer) 1127.0.0.1:6379> EMBED.DEDUP.GET org abc123(nil)After two PUT calls, the first release leaves one reference and the second
removes the embedding.
Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”EMBED.DEDUP.PUT, EMBED.DEDUP.GET, EMBED.DEDUP.STATS, EMBED.DEDUP.PURGE, EMBED.DEDUP.DROP, EMBED.DEDUP.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.