Skip to content

Deprecate confidence_interval parameter in Lucene Scalar Quantizer#3168

Draft
naveentatikonda wants to merge 2 commits intoopensearch-project:mainfrom
naveentatikonda:deprecate_sq_ci
Draft

Deprecate confidence_interval parameter in Lucene Scalar Quantizer#3168
naveentatikonda wants to merge 2 commits intoopensearch-project:mainfrom
naveentatikonda:deprecate_sq_ci

Conversation

@naveentatikonda
Copy link
Member

@naveentatikonda naveentatikonda commented Mar 14, 2026

Description

The confidence_interval parameter in the Lucene SQ encoder is deprecated as of OpenSearch 3.6.0 and will be removed in a future release.

confidence_interval was originally passed to Lucene99ScalarQuantizedVectorsFormat, but Lucene dropped support for it in Lucene104HnswScalarQuantizedVectorsFormat — the confidence interval is now computed automatically from vector dimensionality. The KNN1040 codec currently preserves the parameter via the backward-compatible Lucene99RWHnswScalarQuantizedVectorsFormat, but it will have no effect in future codec versions.

Related Issues

Check List

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.

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.58%. Comparing base (6ec5f5b) to head (04d18d6).

Files with missing lines Patch % Lines
...earch/knn/index/engine/lucene/LuceneSQEncoder.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #3168   +/-   ##
=========================================
  Coverage     82.57%   82.58%           
+ Complexity     3948     3947    -1     
=========================================
  Files           426      426           
  Lines         14677    14679    +2     
  Branches       1875     1876    +1     
=========================================
+ Hits          12120    12123    +3     
+ Misses         1796     1794    -2     
- Partials        761      762    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant