Rerankings
Reranking
Score and rank documents by their relevance to queries with an Isaacus reranker.
post/rerankings
Request body
Example request
{
"model": "kanon-2-reranker",
"query": "What are the essential elements required to establish a negligence claim?",
"texts": [
"To form a contract, there must be an offer, acceptance, consideration, and mutual intent to be bound.",
"Criminal cases involve a completely different standard, requiring proof beyond a reasonable doubt.",
"In a negligence claim, the plaintiff must prove duty, breach, causation, and damages.",
"Negligence in tort law requires establishing a duty of care that the defendant owed to the plaintiff.",
"The concept of negligence is central to tort law, with courts assessing whether a breach of duty caused harm."
],
"top_n": null,
"is_iql": false,
"scoring_method": "auto",
"chunking_options": {
"size": null,
"overlap_ratio": null,
"overlap_tokens": null
}
}Response
Request fulfilled, document follows
Example response
{
"results": [
{
"index": 2,
"score": 0.7727372261985272
},
{
"index": 3,
"score": 0.7332913519466231
},
{
"index": 4,
"score": 0.32399687407609323
},
{
"index": 1,
"score": 0.09480246485705024
},
{
"index": 0,
"score": 0.06929198572432578
}
],
"usage": {
"input_tokens": 170
}
}