Open dayuyang1999 opened 3 months ago
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.