uma_score
Returns per-sentence relevance scores for a query and context, using a cross-encoder without thresholding. Use it to inspect why specific sentences are kept or dropped during RAG context optimization.
Instructions
Return per-sentence cross-encoder relevance scores for a context.
Segments context into sentences and scores each one's relevance to
query with the local cross-encoder, without applying any threshold.
Useful for inspecting why Uma would keep or drop a given sentence.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"context": "<context>"
},
"name": "uma_score"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| context | Yes |