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
It's up to the user to select the distance metric they use with their collection. However, embedding models are trained with a pre-determined similarity metric. By knowing the embedding function, we should automatically know the required distance metric. Chroma defaults to the L2 metric which isn't right for many embedding models.
Describe the proposed solution
When the user sets an embedding function on a collection, we should have a property on that EF which the collection readts to automatically select the right distance metric if available, unless it's overriden by collection params.
This is slightly hairy when loading a collection. We should error if you try to load with the wrong distance metric.
Alternatives considered
Leaving it as-is.
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
It's up to the user to select the distance metric they use with their collection. However, embedding models are trained with a pre-determined similarity metric. By knowing the embedding function, we should automatically know the required distance metric. Chroma defaults to the L2 metric which isn't right for many embedding models.
Describe the proposed solution
When the user sets an embedding function on a collection, we should have a property on that EF which the collection readts to automatically select the right distance metric if available, unless it's overriden by collection params.
This is slightly hairy when loading a collection. We should error if you try to load with the wrong distance metric.
Alternatives considered
Leaving it as-is.
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: