An MLX conversion of voyageai/voyage-4-nano
at revision 67fabc9bef010dabc5f6024aa1b1b6b93410426f, packaged for on-device embedding in
Ambient through Frigate.
Unofficial: not affiliated with or endorsed by MongoDB, Inc. or Voyage AI.
model.safetensors, 370 MB).config_sentence_transformers.json):Represent the query for retrieving supporting documents: Represent the document for retrieval: let embedder = FrigateEmbedder(profile: .voyage4Nano)
let queries = try await embedder.embed(["what is a lichen?"], role: .query)
let passages = try await embedder.embed(["Lichens are a symbiosis of a fungus and an alga."], role: .document)
Measured with Frigate's FrigateEmbedder (this snapshot, 1024 dims, 512 tokens) against
sentence-transformers running the upstream model in bfloat16. nDCG@10:
| Dataset | Upstream (sentence-transformers) | This snapshot (Frigate/MLX) |
|---|---|---|
| scifact | 0.7289 | 0.7284 |
| nfcorpus | 0.3900 | 0.3892 |
| germanquad | 0.9515 | 0.9508 |
| alloprof | 0.5430 | 0.5422 |
Mean cosine to the upstream vectors: 0.99956 (minimum 0.99810); no non-finite values.
Apache-2.0, as upstream. LICENSE.txt is the upstream licence and NOTICE.txt carries the
upstream notice (MongoDB, Inc.; built on Qwen3 by Alibaba Cloud) followed by Rao Studios'
statement of what was changed. Conversion script: scripts/embedders/convert_voyage.py in
rao-studios/Frigate, sha256 9dd3a4379f675e4d174d7ed4a3a27eb42ea497fc16020248eca7626d4cfa5ab0.
voyageai/voyage-4-nano