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.

VSIM.GET

Last updated
VSIM.GET index key
Group
Vector search
Complexity
O(D), D being the dimensions
Arity
3 (exactly, counting the command name)
Flags
read-only, slow
Keys
first 1, last 1, step 1
HotKV Cloud
All plans
On-Premise
no license needed

VSIM.GET returns the vector stored under key in the vector index index. Values are returned with single-precision accuracy (up to 8 significant digits), so they can differ slightly from the values you sent.

Case RESP2 RESP3
Key has a vector Array of bulk strings, one per dimension Same
No vector for the key Nil array Null

Error replies: ERR index 'name' not found.

127.0.0.1:6379> VSIM.CREATEINDEX points 3 METRIC L2
OK
127.0.0.1:6379> VSIM.SET points p:1 1 0.5 0.1
(integer) 1
127.0.0.1:6379> VSIM.GET points p:1
1) "1"
2) "0.5"
3) "0.1"
127.0.0.1:6379> VSIM.GET points p:9
(nil)

HotKV-only command.

VSIM.SET, VSIM.DEL, VSIM.SEARCH