Classifications
Universal classification
Classify documents with an Isaacus universal classification model.
post/classifications/universal
Request body
Example request
{
"model": "kanon-universal-classifier",
"query": "This is a confidentiality clause.",
"texts": [
"I agree not to tell anyone about the document."
]
}Response
Classifications of the relevance of documents to a query produced by an Isaacus universal classification model.
Example response
{
"classifications": [
{
"index": 0,
"score": 0.8825573934438159,
"chunks": [
{
"index": 0,
"start": 0,
"end": 46,
"score": 0.8825573934438159,
"text": "I agree not to tell anyone about the document."
}
]
}
],
"usage": {
"input_tokens": 19
}
}