We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ebd011 commit 4a0e643Copy full SHA for 4a0e643
examples/cohere/example.js
@@ -9,13 +9,13 @@ await client.query('CREATE EXTENSION IF NOT EXISTS vector');
9
await pgvector.registerTypes(client);
10
11
await client.query('DROP TABLE IF EXISTS documents');
12
-await client.query('CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1024))');
+await client.query('CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1536))');
13
14
async function embed(texts, inputType) {
15
const cohere = new CohereClient();
16
const response = await cohere.embed({
17
texts: texts,
18
- model: 'embed-english-v3.0',
+ model: 'embed-v4.0',
19
inputType: inputType,
20
embeddingTypes: ['ubinary']
21
});
0 commit comments