VSIM.GET
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.
Return value
Section titled “Return value”| 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.
Examples
Section titled “Examples”127.0.0.1:6379> VSIM.CREATEINDEX points 3 METRIC L2OK127.0.0.1:6379> VSIM.SET points p:1 1 0.5 0.1(integer) 1127.0.0.1:6379> VSIM.GET points p:11) "1"2) "0.5"3) "0.1"127.0.0.1:6379> VSIM.GET points p:9(nil)Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.