How to choose distance in a retrieval system?
Jinsns opened this issue · comments
Zhihong Jin commented
When we use the AnglE to build a (faiss) vector store for retrieval, do we need to customize an distance function which is in accord with the final objective function?
The default distance of faiss vector store is L2_distance, and it has an option to COSINE.
Will the retrieval system perform well just with L2 or COSINE?
Sean commented
You can choose L2 or Cosine in your applications.
Here is one faiss example using UAE: https://colab.research.google.com/drive/1WOYD6f8gb_wpkUm_57K8pEDgjlGJd6oB?usp=drive_link