What this thread does
For Workers AI, use the cited local studies to shortlist BGE-M3 for Korean/Chinese/English passages, EmbeddingGemma for cross-language known-item lookup, and Qwen3-Embedding-0.6B for scientific topical ranking, then compare available candidates through the hosted endpoints; the cited EmbeddingGemma endpoint is deprecated (Stuga, October 9, 2026, LA Referencia–IOI, January–June 2026).
Do first: call await env.AI.run('@cf/qwen/qwen3-embedding-0.6b', { text: ['your document excerpt'] }) in a disposable index path and inspect the returned vector width; this adapts Cloudflare's example without changing the existing index.
Which job changes the shortlist?
Cross-language scientific records: LA Referencia–IOI compared the same 50,000 OpenAlex documents across ten languages, with 19,200 generated known-item queries and 1,440 topical queries. Its report says “Their specific instructions and prefixes were also respected.” Known-item MRR measures where a particular document lands; topical nDCG@10 measures the order of relevant results. They are different jobs (report, sections 5.2 and 6.4).
| Model | Cross-lingual MRR | Topical nDCG@10 |
|---|---|---|
| EmbeddingGemma-300M | 0.904 | 0.451 |
| Qwen3-Embedding-0.6B | 0.843 | 0.458 |
| BGE-M3 | 0.801 | 0.379 |
These are the report's results, not Workers measurements. EmbeddingGemma is a candidate when readers search across languages for a specific record; Qwen is a candidate when ordering topical matches matters. Neither column establishes a universal winner (LA Referencia–IOI).
Korean, Chinese and English passages: Stuga reports 1,405 MIRACL questions over 303,370 passages. Dense nDCG@10, on a 0–100 scale, was 63.9 BGE-M3, 61.1 EmbeddingGemma v1, 56.7 Qwen3-Embedding 0.6B. These were Ollama builds: F16 BGE, BF16 Gemma and Q8_0 Qwen, with model-specific prompts. Stuga cautions, “Compare models within a column.” This keeps BGE-M3 on the shortlist for these languages; it does not establish the same ranking on Workers (October 9 study, table 3).
Together these independent studies support choosing by language and retrieval task; they do not support transferring a model's rank from one corpus to another.
What the Workers binding changes
| Option | Concrete integration consequence | Primary source, checked 2026-11-02 |
|---|---|---|
@cf/baai/bge-m3 | BGE's native dense vectors have 1,024 dimensions; preserve its own document/query space when keeping an existing index. | BAAI model card, Cloudflare model page |
@cf/qwen/qwen3-embedding-0.6b | Native output is up to 1,024 dimensions. Cloudflare exposes queries, documents and an instruction field; its hosted page lists an 8,192-token context, while Qwen's original card describes 32k. Use the hosted contract when sizing input. | Cloudflare schema, Qwen card |
@cf/google/embeddinggemma-300m | Cloudflare marks this endpoint Beta and deprecated as of 2026-11-20 (checked 2026-11-24). Google's original text model has 768-dimensional output and a 2K input context; its model card distinguishes retrieval query and document prompts. This is the first EmbeddingGemma, not EmbeddingGemma 2. | Cloudflare endpoint, Google DeepMind card |
Use each model's query/document conventions consistently. Matching widths alone are not a reason to mix model spaces; rebuilding the index for a model change is also the procedure in Helweg's August 12, 2026 comparison.
Cost: Cloudflare lists $0.0118 per million input tokens for both BGE-M3 and Qwen3-Embedding-0.6B, checked 2026-11-02 (BGE page, Qwen page). Equal list rates do not establish equal token counts or latency. Cloudflare's November 18 pricing page describes neuron-based billing and a shared daily allocation (pricing).
For an actual switch, build a separate candidate index and compare the same corpus and queries in each required language. This is an adaptation of the studies' same-corpus comparisons; a successful embedding response alone says nothing about retrieval quality.
Limits
The two multilingual studies measure local/model retrieval, not Workers p50 or p95 latency. The OpenAlex known-item queries are generated, and the small topical difference between Qwen and EmbeddingGemma has no uncertainty interval in that report. Cloudflare endpoint status, input limits and list prices are first-party statements; there is no independent hosted billing comparison here. The cited EmbeddingGemma endpoint page gives no unit price, so a three-way cost ranking is not established. Smaller-vector quality on Workers is outside these results.
Not for: local image, audio and text search; see embeddinggemma-2-local-multimodal-search. For planning a large document re-index, see embedding-eval-before-reindex-scientific-pdfs.
Checked 2026-11-02.
Started from a post by @Cloudflare, packaged by the editor. Original post