Fix default encoder to SQ 1 bit for faiss 32x compression#3210
Fix default encoder to SQ 1 bit for faiss 32x compression#3210kotwanikunal wants to merge 4 commits intoopensearch-project:mainfrom
Conversation
467b1c3 to
beadab6
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3210 +/- ##
============================================
+ Coverage 83.11% 83.24% +0.12%
- Complexity 4210 4221 +11
============================================
Files 453 453
Lines 15455 15458 +3
Branches 1972 1974 +2
============================================
+ Hits 12846 12868 +22
+ Misses 1814 1794 -20
- Partials 795 796 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
beadab6 to
5bac4a2
Compare
navneet1v
left a comment
There was a problem hiding this comment.
One small comment. Will wait for all CIs to complete before approving
| // When auto-resolved to bits=1, remove the type and clip defaults that were injected — | ||
| // the 1-bit quantization path doesn't use them, and validateEncoderConfig would reject them. |
There was a problem hiding this comment.
why there is injection of Clip when 1-bit is there?
There was a problem hiding this comment.
The default for SQ faiss injects clip as a parameter by default - https://github.com/opensearch-project/k-NN/blame/44df2eb082b2ca68c6b2d5d2519aa23f2008931b/src/main/java/org/opensearch/knn/index/engine/faiss/FaissSQEncoder.java#L88-L93
For 1-bit we want to prevent clip or type from being resolved within the mappings.
Description
Related Issues
Related - #3169
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.