embedding_similarity
Compute a deterministic similarity score between two embedding vectors using a selected metric like cosine. Validates equal vector lengths and returns the similarity score for comparison tasks.
Instructions
Score the similarity between two caller-supplied embedding vectors with a supported deterministic metric (default embeddings.cosine_similarity). This tool does not generate embeddings from text — call embeddings first to produce the vectors. left and right must have equal length or the call fails with invalid_embedding_dimensions. Read-only and deterministic. Returns the resolved model id, similarity_metric, the score, and the shared vector dimension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left | Yes | First embedding vector; length must equal right's. | |
| model | No | Similarity model id from list_models; selects the metric. | embeddings.cosine_similarity |
| right | Yes | Second embedding vector; length must equal left's. |