You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
# Changelog
2
2
3
+
## 0.6.0 (2025-04-19)
4
+
5
+
Full Changelog: [v0.5.1...v0.6.0](https://github.com/isaacus-dev/isaacus-typescript/compare/v0.5.1...v0.6.0)
6
+
7
+
### ⚠ BREAKING CHANGES
8
+
9
+
***api:** made universal classification endpoint multi-input only
10
+
11
+
### Features
12
+
13
+
***api:** made universal classification endpoint multi-input only ([af242f4](https://github.com/isaacus-dev/isaacus-typescript/commit/af242f49a223c9521b713ff6f35343913a3d804f))
14
+
3
15
## 0.5.1 (2025-04-16)
4
16
5
17
Full Changelog: [v0.5.0...v0.5.1](https://github.com/isaacus-dev/isaacus-typescript/compare/v0.5.0...v0.5.1)
text: 'I agree not to tell anyone about the document.',
82
+
texts: ['I agree not to tell anyone about the document.'],
83
83
})
84
84
.catch(async (err) => {
85
85
if (errinstanceofIsaacus.APIError) {
@@ -124,7 +124,7 @@ const client = new Isaacus({
124
124
});
125
125
126
126
// Or, configure per-request:
127
-
awaitclient.classifications.universal.create({ model:'kanon-universal-classifier', query:'This is a confidentiality clause.', text:'I agree not to tell anyone about the document.' }, {
127
+
awaitclient.classifications.universal.create({ model:'kanon-universal-classifier', query:'This is a confidentiality clause.', texts: ['I agree not to tell anyone about the document.'] }, {
128
128
maxRetries:5,
129
129
});
130
130
```
@@ -141,7 +141,7 @@ const client = new Isaacus({
141
141
});
142
142
143
143
// Override per-request:
144
-
awaitclient.classifications.universal.create({ model: 'kanon-universal-classifier', query: 'This is a confidentiality clause.', text: 'I agree not to tell anyone about the document.' }, {
144
+
awaitclient.classifications.universal.create({ model: 'kanon-universal-classifier', query: 'This is a confidentiality clause.', texts: ['I agree not to tell anyone about the document.'] }, {
'Classify the relevance of a legal document to a query with an Isaacus universal legal AI classifier.',
16
+
'Classify the relevance of legal documents to a query with an Isaacus universal legal AI classifier.',
17
17
inputSchema: {
18
18
type: 'object',
19
19
properties: {
@@ -26,11 +26,16 @@ export const tool: Tool = {
26
26
query: {
27
27
type: 'string',
28
28
description:
29
-
'The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if IQL is disabled, the statement, to evaluate the text against.\n\nThe query must contain at least one non-whitespace character.\n\nUnlike the text being classified, the query cannot be so long that it exceeds the maximum input length of the universal classifier.',
29
+
'The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if IQL is disabled, the statement, to evaluate the texts against.\n\nThe query must contain at least one non-whitespace character.\n\nUnlike the texts being classified, the query cannot be so long that it exceeds the maximum input length of the universal classifier.',
30
30
},
31
-
text: {
32
-
type: 'string',
33
-
description: 'The text to classify.\n\nThe text must contain at least one non-whitespace character.',
31
+
texts: {
32
+
type: 'array',
33
+
description:
34
+
'The texts to classify.\n\nThe texts must contain at least one non-whitespace character.',
35
+
items: {
36
+
type: 'string',
37
+
title: 'Non-blank string',
38
+
},
34
39
},
35
40
chunking_options: {
36
41
type: 'object',
@@ -63,7 +68,7 @@ export const tool: Tool = {
63
68
scoring_method: {
64
69
type: 'string',
65
70
description:
66
-
"The method to use for producing an overall confidence score.\n\n`auto` is the default scoring method and is recommended for most use cases. Currently, it is equivalent to `chunk_max`. In the future, it will automatically select the best method based on the model and input.\n\n`chunk_max` uses the highest confidence score of all of the text's chunks.\n\n`chunk_avg` averages the confidence scores of all of the text's chunks.\n\n`chunk_min` uses the lowest confidence score of all of the text's chunks.",
71
+
"The method to use for producing an overall confidence score.\n\n`auto` is the default scoring method and is recommended for most use cases. Currently, it is equivalent to `chunk_max`. In the future, it will automatically select the best method based on the model and inputs.\n\n`chunk_max` uses the highest confidence score of all of the texts' chunks.\n\n`chunk_avg` averages the confidence scores of all of the texts' chunks.\n\n`chunk_min` uses the lowest confidence score of all of the texts' chunks.",
0 commit comments