% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

**Example**

```esql
from colors
| where color != "black"
| eval similarity = v_cosine(rgb_vector, [0, 255, 255])
| sort similarity desc, color asc
```

| color:text | similarity:double |
| --- | --- |
| cyan | 1.0 |
| teal | 1.0 |
| turquoise | 0.9781067967414856 |
| aqua marine | 0.929924726486206 |
| azure | 0.8324936032295227 |
| lavender | 0.827340304851532 |
| mint cream | 0.8245516419410706 |
| honeydew | 0.8244848847389221 |
| gainsboro | 0.8164966106414795 |
| gray | 0.8164966106414795 |


