Open bastiennes opened 1 year ago
What's more, most of the embedding models used (notably the base model of the chromaDB implementation: all-MiniLM-L6-v2) are optimized for use with cosine similarity and not l2... It would be interesting to replace the l2 distance function by the cosine in the basic operation of chromaDB.
You can't change the distance used after creating the collection. We can add better messaging around this.
Relevant to #1052 and PR #1461
What happened?
When I try to use modify method of collection class after creating and adding an item to it, the function doesn't work... Here's a little script to check the bug: you just play with the create_collection and collection.modify metadata and check the distance scores with the base function (l2) and the cosine function...