nv_similarity
Ranks candidate texts by semantic similarity to a query, returning an ordered list based on embedding model matches.
Instructions
Rank candidate texts by semantic similarity to a query.
Args: query: the search string. candidates: texts to rank. model: embedding model id. Defaults to the best available one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| query | Yes | ||
| candidates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |