You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I need your help urgently. How can I assign weights to words or labels when obtaining vectors? For instance, consider the sentence: "apple iphone 14 pro red." When obtaining vectors, I want the words "iphone" and "14" to carry more weight compared to other words. This is so that when searching for similar models, the focus is on "iphone 14". Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
This is not possible with Sentence Transformers, at least, not without notable finetuning, etc. Increasing the weight for specific words seems more feasible with e.g. SPLADE or BM25.
Hello everyone, I need your help urgently. How can I assign weights to words or labels when obtaining vectors? For instance, consider the sentence: "apple iphone 14 pro red." When obtaining vectors, I want the words "iphone" and "14" to carry more weight compared to other words. This is so that when searching for similar models, the focus is on "iphone 14". Thank you for your assistance!
The text was updated successfully, but these errors were encountered: