How to compare sentences?
#9
by
yalastik
- opened
Is there a more advanced way to compare vectorised sentences than just with cosine/euclidean? It seems like there are transformer options which do that and it can only be done by fine-tuning and changing the target?
Did you figure this out?
Sadly, no
With this model, comparing vectors can only be done using cosine similarity/dot score/euclidean distance. If you want to use the attention mechanism from transformer models, then you might be interested in cross-encoder models: https://huggingface.co./cross-encoder, https://huggingface.co./BAAI/bge-reranker-base, https://huggingface.co./mixedbread-ai/mxbai-rerank-base-v1
- Tom Aarsen