Skip to content

Commit 4a0e643

Browse files
committed
Updated Cohere example [skip ci]
1 parent 1ebd011 commit 4a0e643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cohere/example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ await client.query('CREATE EXTENSION IF NOT EXISTS vector');
99
await pgvector.registerTypes(client);
1010

1111
await client.query('DROP TABLE IF EXISTS documents');
12-
await client.query('CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1024))');
12+
await client.query('CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1536))');
1313

1414
async function embed(texts, inputType) {
1515
const cohere = new CohereClient();
1616
const response = await cohere.embed({
1717
texts: texts,
18-
model: 'embed-english-v3.0',
18+
model: 'embed-v4.0',
1919
inputType: inputType,
2020
embeddingTypes: ['ubinary']
2121
});

0 commit comments

Comments
 (0)