Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
You can also use the model for retrieval. For example:
import { pipeline, cos_sim } from'@xenova/transformers';
// Create a feature-extraction pipelineconst extractor = awaitpipeline('feature-extraction', 'Xenova/bge-small-en-v1.5');
// List of documents you want to embedconst texts = [
'Hello world.',
'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.',
'I love pandas so much!',
];
// Compute sentence embeddingsconst embeddings = awaitextractor(texts, { pooling: 'mean', normalize: true });
// Prepend recommended query instruction for retrieval.const query_prefix = 'Represent this sentence for searching relevant passages: 'const query = query_prefix + 'What is a panda?';
const query_embeddings = awaitextractor(query, { pooling: 'mean', normalize: true });
// Sort by cosine similarity scoreconst scores = embeddings.tolist().map(
(embedding, i) => ({
id: i,
score: cos_sim(query_embeddings.data, embedding),
text: texts[i],
})
).sort((a, b) => b.score - a.score);
console.log(scores);
// [// { id: 1, score: 0.7787772374597298, text: 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.' },// { id: 2, score: 0.7071589521880506, text: 'I love pandas so much!' },// { id: 0, score: 0.4252782730390429, text: 'Hello world.' }// ]
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using
🤗 Optimum
and structuring your repo like this one (with ONNX weights located in a subfolder named
onnx
).
Runs of Xenova bge-base-en-v1.5 on huggingface.co
2.4M
Total runs
713
24-hour runs
21.8K
3-day runs
7.5K
7-day runs
-114.0K
30-day runs
More Information About bge-base-en-v1.5 huggingface.co Model
bge-base-en-v1.5 huggingface.co is an AI model on huggingface.co that provides bge-base-en-v1.5's model effect (), which can be used instantly with this Xenova bge-base-en-v1.5 model. huggingface.co supports a free trial of the bge-base-en-v1.5 model, and also provides paid use of the bge-base-en-v1.5. Support call bge-base-en-v1.5 model through api, including Node.js, Python, http.
bge-base-en-v1.5 huggingface.co is an online trial and call api platform, which integrates bge-base-en-v1.5's modeling effects, including api services, and provides a free online trial of bge-base-en-v1.5, you can try bge-base-en-v1.5 online for free by clicking the link below.
Xenova bge-base-en-v1.5 online free url in huggingface.co:
bge-base-en-v1.5 is an open source model from GitHub that offers a free installation service, and any user can find bge-base-en-v1.5 on GitHub to install. At the same time, huggingface.co provides the effect of bge-base-en-v1.5 install, users can directly use bge-base-en-v1.5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.