fix: remove cosine similarity field with false assignment#835
Conversation
Signed-off-by: anna-charlotte <[email protected]>
Signed-off-by: anna-charlotte <[email protected]>
Signed-off-by: anna-charlotte <[email protected]>
Codecov ReportBase: 88.13% // Head: 88.13% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #835 +/- ##
==========================================
- Coverage 88.13% 88.13% -0.01%
==========================================
Files 138 138
Lines 7137 7136 -1
==========================================
- Hits 6290 6289 -1
Misses 847 847
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: anna-charlotte <[email protected]>
ecbf52c to
7fafa58
Compare
Signed-off-by: anna-charlotte <[email protected]>
Co-authored-by: Alex Cureton-Griffiths <[email protected]> Signed-off-by: anna-charlotte <[email protected]>
Signed-off-by: anna-charlotte <[email protected]>
JoanFM
left a comment
There was a problem hiding this comment.
Should we have a common key in scores for every docstore besides an specialized one? like this is easier to have same code for every backend?
|
Yes we have discussed this, too. I think it would be nicer to have the same solution for all storages, but changing it now, would be a breaking change, right? Do u think it is worth it? |
Signed-off-by: anna-charlotte <[email protected]>
|
📝 Docs are deployed on https://ft-fix-distance-metrics-in-storage-backends--jina-docs.netlify.app 🎉 |
Signed-off-by: anna-charlotte [email protected]
In the weaviate storage backend, the
distanceis mistakenly being assigned to thecosine_similarityfield. Remove this line, since weaviate does not provide cosine similarity, but instead (cosine) distance.Added some more documentation on the keys to access in the
.scoresdictionary, since most are different to the default.Goals:
cosine_similarityassignment from weaviate backend.