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
texts: ['I agree not to tell anyone about the document.'],
68
+
model: 'kanon-2-embedder',
69
+
texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'],
74
70
})
75
71
.catch(async (err) => {
76
72
if (errinstanceofIsaacus.APIError) {
@@ -112,7 +108,7 @@ const client = new Isaacus({
112
108
});
113
109
114
110
// Or, configure per-request:
115
-
awaitclient.classifications.universal.create({ model:'kanon-universal-classifier', query:'This is a confidentiality clause.', texts: ['I agree not to tell anyone about the document.'] }, {
111
+
awaitclient.embeddings.create({ model:'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'] }, {
116
112
maxRetries:5,
117
113
});
118
114
```
@@ -129,7 +125,7 @@ const client = new Isaacus({
129
125
});
130
126
131
127
// Override per-request:
132
-
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
+
awaitclient.embeddings.create({ model: 'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'] }, {
133
129
timeout: 5*1000,
134
130
});
135
131
```
@@ -152,25 +148,23 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
0 commit comments