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
hi @dayuyang1999,
At search time, for l2 norm vectors, we assume the indexes are built with vector normalized already and the query encoder is generating normalized vectors. You can make the l2-norm=true when you initialize the query encoder and then pass the query encoder to the searcher.
Hi,
If I use my own embedding model like
bge-large-en-v1.5
.Because the model is trained on optimizing cosine similarity. When creating index, the correct implementation should add
--l2-norm
option.However, when creating FaissSearcher for search, it seems there is no option for normalizing the embedding.
The text was updated successfully, but these errors were encountered: