Skip to content
WebAI

search-rag / embedding

Embedding

Turns text into a fixed-length vector for retrieval, clustering or deduplication. These are the smallest useful models in the catalog — 30–130 MB quantised — and the vectors never leave the device, which is why local RAG usually starts here.

5 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

all-MiniLM-L6-v2

Tiny but high-quality sentence embeddings for semantic search.

Tasks: Embedding

ModelTransformers.js

q8: 21.9 MiB

q4f16: 28.6 MiB

fp16: 43.2 MiB

fp32: 86.2 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/all-MiniLM-L6-v2
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Apache-2.0
Legacy license label (unverified)
Apache-2.0

Deployment variants

q8
Download size: 21.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 751bff37182d3f1213fa05d7196b954e230abad9
Weight artifact ↗
q4f16
Download size: 28.6 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 751bff37182d3f1213fa05d7196b954e230abad9
Weight artifact ↗
fp16
Download size: 43.2 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 751bff37182d3f1213fa05d7196b954e230abad9
Weight artifact ↗
fp32
Download size: 86.2 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 751bff37182d3f1213fa05d7196b954e230abad9
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

BGE Small EN

BAAI BGE small embedding model, strong on retrieval benchmarks.

Tasks: Embedding

ModelTransformers.js

q8: 32.4 MiB

q4f16: 34.5 MiB

fp16: 63.7 MiB

fp32: 126.9 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/bge-small-en-v1.5
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 32.4 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: ea104dacec62c0de699686887e3f920caeb4f3e3
Weight artifact ↗
q4f16
Download size: 34.5 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: ea104dacec62c0de699686887e3f920caeb4f3e3
Weight artifact ↗
fp16
Download size: 63.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: ea104dacec62c0de699686887e3f920caeb4f3e3
Weight artifact ↗
fp32
Download size: 126.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: ea104dacec62c0de699686887e3f920caeb4f3e3
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

GTE Small

Alibaba GTE small embedding model.

Tasks: Embedding

ModelTransformers.js

q8: 32.4 MiB

q4f16: 34.5 MiB

fp16: 63.7 MiB

fp32: 126.9 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/gte-small
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 32.4 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 5927d1727bb12db490052a1b33265ad78058de08
Weight artifact ↗
q4f16
Download size: 34.5 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 5927d1727bb12db490052a1b33265ad78058de08
Weight artifact ↗
fp16
Download size: 63.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 5927d1727bb12db490052a1b33265ad78058de08
Weight artifact ↗
fp32
Download size: 126.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 5927d1727bb12db490052a1b33265ad78058de08
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

BGE-M3

Multilingual, multi-granularity, multi-function embedding model.

Tasks: Embedding

ModelTransformers.js

q8: 1086.8 MiB

q4f16: 1335.1 MiB

fp16: 2163.1 MiB

fp32: 4324.9 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/bge-m3
Natural languages
100+ languages
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 1086.8 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 4de13258303883538bd53b696b452bf8099f0858
Weight artifact ↗
q4f16
Download size: 1335.1 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 4de13258303883538bd53b696b452bf8099f0858
Weight artifact ↗
fp16
Download size: 2163.1 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 4de13258303883538bd53b696b452bf8099f0858
Weight artifact ↗
fp32
Download size: 4324.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 4de13258303883538bd53b696b452bf8099f0858
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Instructor-XL

Instruction-tuned text embedding model for retrieval, clustering and similarity. This source does not establish browser compatibility.

Tasks: Embedding

ModelTransformers (Python)

Download size: Not verified

Code license: Not verified

Weight license: Apache-2.0

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
hkunlp/instructor-xl
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
Not verified
Execution backend
Not verified
Code license
Not verified
Weight license
Apache-2.0
Legacy license label (unverified)
Apache-2.0

Deployment variants

Unspecified variant
Download size: Not verified
Peak runtime memory: Not measured
Quantization / precision: Not verified
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Embedding

Embedding under Search & RAG holds 5 catalogue entries: 5 models.

4 of them carry browser evidence, all from upstream browser examples. Another 1 are still waiting for verification.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js and Transformers (Python), and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
5 in total
Main runtime
Transformers.js and Transformers (Python)
Smallest known weights
21.9 MiB
Browser evidence
4 of 5 verified

Embedding: common questions

Can Embedding run directly in a browser?
Yes. 4 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Embedding?
We verified the weight file sizes of 4 entries in this task; the smallest tier is 21.9 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Embedding?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Search & RAG models →

Read next

All posts →