Xenova HF staff commited on
Commit
c7bf542
1 Parent(s): 9c5aaf8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -20,7 +20,7 @@ import { pipeline } from '@xenova/transformers';
20
  const extractor = await pipeline('feature-extraction', 'Xenova/bge-small-en-v1.5');
21
 
22
  // Compute sentence embeddings
23
- const texts = [ 'Hello world.', 'Example sentence.'];
24
  const embeddings = await extractor(texts, { pooling: 'mean', normalize: true });
25
  console.log(embeddings);
26
  // Tensor {
 
20
  const extractor = await pipeline('feature-extraction', 'Xenova/bge-small-en-v1.5');
21
 
22
  // Compute sentence embeddings
23
+ const texts = ['Hello world.', 'Example sentence.'];
24
  const embeddings = await extractor(texts, { pooling: 'mean', normalize: true });
25
  console.log(embeddings);
26
  // Tensor {