Run all-MiniLM-L6-v2 and other sentence-transformers models from Rust with one crate: no ONNX export, no libtorch, no Python. The same scores as sentence-transformers, a 25 MB binary, and 1,000 sentences embedded in about a second.
A semantic search HTTP service in 60 lines of Go. The embedding model runs inside the Go process, the native library is embedded in the binary, and it builds with CGO_ENABLED=0. Under 10 ms per search on a CPU.
Run all-MiniLM-L6-v2 from Python without installing PyTorch or sentence-transformers. The same similarity scores to four decimals, 28 MB installed instead of 1.4 GB, and loaded in 0.07 seconds instead of 3.4.
all-MiniLM-L6-v2 truncates at 256 tokens, about 900 characters, and drops the rest without a warning. Why the configs say 128, 256 and 512, what chunk size to use, and why raising max_seq_length to 512 makes retrieval worse.