EMBED.DEDUP.STATS
EMBED.DEDUP.STATS namespace
- Group
- Embeddings
- Complexity
- O(1)
- Arity
- 2 (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.STATS reports counters for one namespace. For a
namespace that does not exist, every counter is zero.
Return value
Section titled “Return value”The reply is a flat array of alternating field names and values in both RESP2 and RESP3 (it is not sent as a RESP3 map). The fields, in order:
| Field | Type | Meaning |
|---|---|---|
hits |
Integer | EMBED.DEDUP.GET calls that found an embedding. |
misses |
Integer | GET calls that found nothing. |
entries |
Integer | Embeddings currently stored. |
Errors:
ERR wrong number of arguments for 'embed.dedup.stats' 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.STATS org1) "hits"2) (integer) 13) "misses"4) (integer) 15) "entries"6) (integer) 1Compatibility
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.RELEASE, EMBED.DEDUP.PURGE, EMBED.DEDUP.DROP, EMBED.DEDUP.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.