# VSIM.GET

> Return the vector stored for a key in a vector index.

URL: https://docs.hotkv.com/commands/vsim-get/

```
VSIM.GET index key
```

- Group: Vector search
- Complexity: O(D), D being the dimensions
- 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

| 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

```
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)
```

## Compatibility

HotKV-only command.

## See also

[VSIM.SET](https://docs.hotkv.com/commands/vsim-set/index.md), [VSIM.DEL](https://docs.hotkv.com/commands/vsim-del/index.md), [VSIM.SEARCH](https://docs.hotkv.com/commands/vsim-search/index.md)