Classifications
Universal classification
Changed onClassify documents with an Isaacus universal classification model.
post/classifications/universal
Request
- Base URLhttps://api.isaacus.com/v1
- AuthHTTP bearer
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
}
}Changes
- breaking
the
request property const valuekanon-universal-classifierwas added - breaking
removed the enum value
kanon-universal-classifierof the request property - breaking
removed the enum value
kanon-universal-classifier-miniof the request property
- breaking
- info
the
request property's maxLength was increased from5000to10000000
- info