langchain
f5faac88 - addition of cosine distance function for faiss (#9939)

Commit
2 years ago
addition of cosine distance function for faiss (#9939) - Description: added the _cosine_relevance_score_fn to _select_relevance_score_fn of faiss.py to enable the use of cosine distance for similarity for this vector store and to comply with the Error Message, that implies, that cosine should be a valid distance strategy - Issue: no relevant Issue found, but needed this function myself and tested it in a private repo - Dependencies: none
Author
Parents
Loading