News for hackers. Stuff that matters.
Re:SentenceTransformers: Python framework for sentence, text... by ilaksh on Sunday April 07, 2024 @09:54AM (#39960787)
maybe the normalize_embeddings flag on encode?
Re:SentenceTransformers: Python framework for sentence, text... by Clueed on Sunday April 07, 2024 @10:19AM (#39960948)
Not sure about the specific implementation here but the very definition of cosine similarity includes normalization. [0]

[0] https://en.wikipedia.org/wiki/Cosine_similarity