API Reference
Get Ranks
Runs Reranker. Returns a 424 status code if the model is not a Reranker model.
query
string
requiredInputs that need to be embedded
texts
string[]
requiredInputs that need to be embedded
raw_scores
boolean
default: "false"Output the raw reranker score or the normalized score between 0-1.
When false
, score is between 0 and 1, otherwise range is indeterminate
return_text
boolean
default: "false"Return the text with along with each rank
truncate
boolean
default: "false"Automatically truncate inputs that are longer than the maximum supported size
truncate_direction
"right" | "left"
default: "right"