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: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'],
72
+
task: 'retrieval/query',
70
73
})
71
74
.catch(async (err) => {
72
75
if (errinstanceofIsaacus.APIError) {
@@ -108,7 +111,7 @@ const client = new Isaacus({
108
111
});
109
112
110
113
// Or, configure per-request:
111
-
awaitclient.embeddings.create({ model:'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'] }, {
114
+
awaitclient.embeddings.create({ model:'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'], task:'retrieval/query' }, {
112
115
maxRetries:5,
113
116
});
114
117
```
@@ -125,7 +128,7 @@ const client = new Isaacus({
125
128
});
126
129
127
130
// Override per-request:
128
-
awaitclient.embeddings.create({ model: 'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'] }, {
131
+
awaitclient.embeddings.create({ model: 'kanon-2-embedder', texts: ['Are restraints of trade enforceable under English law?', 'What is a non-compete clause?'], task: 'retrieval/query' }, {
0 commit comments