# fastembed-rs

> Rust library for generating vector embeddings, reranking locally

Source: https://talira.ai/catalog/fastembed-rs-9cry7y9m
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / embeddings / libraries](https://talira.ai/categories/ai/embeddings/libraries), [search / semantic search](https://talira.ai/categories/search/semantic-search), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: Apache-2.0[^1][^3]
- Pricing: Free and open source[^1][^2]
- Free tier: yes[^1][^2]
- Self-hostable: yes[^2]
- Creator: Anush (GitHub Anush008)

fastembed-rs is the Rust counterpart of [FastEmbed](https://talira.ai/catalog/fastembed-30vcrn39.md): it generates dense, sparse and image embeddings and reranks documents locally, using the [ort](https://talira.ai/catalog/ort-e86n3wy1.md) crate for [ONNX Runtime](https://talira.ai/catalog/onnx-runtime-82vyrppc.md) inference and Hugging Face tokenizers. It is synchronous with no [Tokio](https://talira.ai/catalog/tokio-5dcaannt.md) dependency, downloads supported models (BGE, MiniLM, nomic, e5, gte, Jina, Snowflake Arctic, EmbeddingGemma and more) on first use and caches them, and can load local model files; its default text model is [bge-small-en-v1.5](https://talira.ai/catalog/bge-small-en-v1-5-kb749xdz.md) (384 dimensions). Optional [candle](https://talira.ai/catalog/candle-mxvc1kc7.md) backends add Qwen3 embedding models (including quantized GGUF), nomic-embed-text-v2-moe and BERT encoders with Metal or CUDA acceleration, and DirectML runs ONNX models on Windows GPUs.

## Links

- GitHub: https://github.com/Anush008/fastembed-rs
- Docs: https://docs.rs/fastembed

## Problems it solves

- run embedding models from Rust without Python
- semantic search inside a Rust web server with no external embedding API
- rerank results in a Rust service on CPU
- I don't want a Python sidecar just to compute embeddings for my Rust app
- embeddings in Rust without pulling in an async runtime
- load an ONNX embedding model from Hugging Face in Rust
- sparse vectors for hybrid search from Rust
- local embeddings on Apple silicon GPU from Rust
- ship a single binary that does its own embeddings and reranking
- port my Python fastembed search pipeline to Rust with the same models

## Features

- dense, sparse and image embeddings
- rerankers (BGE, Jina)
- synchronous API, no Tokio dependency
- ONNX inference through ort
- quantized model variants
- user-defined local models via try_new_from_user_defined
- candle backend for Qwen3, nomic v2 MoE and BERT, with Metal and CUDA
- DirectML on Windows
- default text model: BAAI/bge-small-en-v1.5 (384 dimensions)
- models download from Hugging Face on first use and are cached (FASTEMBED_CACHE_DIR); no network needed once cached
- default features download ONNX Runtime binaries at build time (ort/download-binaries); ort-load-dynamic links a system library instead
- similarity helpers (cosine_similarity, top_k) for small in-memory searches

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 1.00, adoption 0.60, momentum 0.44, community 0.70, backing 0.20, extensibility 0.00.

- last commit 14 days ago
- 73 commits in the last 90 days
- latest release v7.7.0 14 days ago
- 1.1k GitHub stars
- 56 contributors
- created by Anush (GitHub Anush008)

## Related

- Works with [ONNX Runtime](https://talira.ai/catalog/onnx-runtime-82vyrppc.md)
- Based on [ort](https://talira.ai/catalog/ort-e86n3wy1.md)
- Works with [candle](https://talira.ai/catalog/candle-mxvc1kc7.md)
- Works with [bge-small-en-v1.5](https://talira.ai/catalog/bge-small-en-v1-5-kb749xdz.md)
- Works with [bge-base-en-v1.5](https://talira.ai/catalog/bge-base-en-v1-5-96j75zp0.md)
- Works with [all-MiniLM-L6-v2](https://talira.ai/catalog/all-minilm-l6-v2-e11ef7yh.md)
- Works with [nomic-embed-text-v1.5](https://talira.ai/catalog/nomic-embed-text-v1-5-e639vpnj.md)
- Works with [multilingual-e5-small](https://talira.ai/catalog/multilingual-e5-small-w6nv9gjz.md)
- Works with [snowflake-arctic-embed-xs](https://talira.ai/catalog/snowflake-arctic-embed-xs-93bx26q7.md)
- Works with [snowflake-arctic-embed-s](https://talira.ai/catalog/snowflake-arctic-embed-s-718qym23.md)
- Works with [snowflake-arctic-embed-m](https://talira.ai/catalog/snowflake-arctic-embed-m-9wjsx2q4.md)
- Works with [bge-reranker-v2-m3](https://talira.ai/catalog/bge-reranker-v2-m3-a384zka0.md)

## Alternatives

- [model2vec-rs](https://talira.ai/catalog/model2vec-rs-nng7brwf.md): Fast State-of-the-Art Static Embeddings in Rust
- [FastEmbed](https://talira.ai/catalog/fastembed-30vcrn39.md): Fast, light, accurate library built for retrieval embedding generation
- [candle](https://talira.ai/catalog/candle-mxvc1kc7.md): Minimalist ML framework for Rust

## Sources

[^1]: https://github.com/Anush008/fastembed-rs/blob/main/LICENSE (checked 17 Nov 2026)
[^2]: https://github.com/Anush008/fastembed-rs (checked 17 Nov 2026)
[^3]: https://github.com/Anush008/fastembed-rs/blob/main/Cargo.toml (checked 20 Nov 2026)
