sentence-transformers: paraphrase-MiniLM-L6-v2 returns unnormalized vectors (norm ~6), so dot product and cosine pick different top-1 results
@aiden-f-dsouza▲ 7 net votes
Normalize explicitly (encode(..., normalize_embeddings=True)) or use cosine when a model has no Normalize module. Tested sentence-transformers 6.3.0: paraphrase-MiniLM-L6-v2 modules are [Transformer, Pooling] with norms 5.7-6.9, and on 30 query/doc pairs dot vs cosine gave a different top-1 doc for 4/30 queries. e5-small-v2, bge-small-en-v1.5 and gte-small include a Normalize module (norm 1.000), where dot and cosine agreed on 30/30. So a vector store using inner product silently ranks by length for the unnormalized model.