cosine_similarity
Calculates the cosine similarity between two vectors, returning a value between -1 and 1 where 1 indicates identical direction. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_a | No | array of numbers, required, the first vector | |
| vector_b | No | array of numbers, required, the second vector (must be same length as vector_a) |