Rerank search results with ms-marco-MiniLM-L-6-v2 from Python, without sentence-transformers or PyTorch. The same scores as CrossEncoder, a 28 MB install, and loaded in 0.09 seconds. With an example of what a reranker fixes that embeddings get wrong.
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.
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.