Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment version to 2.20.0-SNAPSHOT #2522

Closed

Conversation

kotwanikunal
Copy link
Member

Description

Related Issues

N/A

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

jmazanec15 and others added 30 commits March 18, 2024 12:57
Adds a set of JNI functions that allows IVFPQ-l2 dynamically precomputed
tables to be shared amongst indices at load time that use the same
model.

In addition, refactors JNIService interface to take KNNEngine as param instead of as string

In addition, add unit tests to confirm that the shared state operates as
expected.

Signed-off-by: John Mazanec <[email protected]>
…#1545)

Adds the ability to share index state amongst indices during index load
operations into the plugins memory management system. Introduces a
manager of the shared state that will properly manage the lifecycle of
the shared state.

There was a bug in clear cache that had to be fixed to get this change
working as well. Previously, only one index file per clear cache would
be freed. This fixes that logic to clear everything.

Added unit tests and an integration test to confirm functionality. In
addition, modified recall integration tests to get more coverage on the
different algo configs. Along with this, had to fix a few things around
the computation of recall for non-l2 space types.

Signed-off-by: John Mazanec <[email protected]>
)

Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit 4b0078d)

Co-authored-by: Naveen Tatikonda <[email protected]>
…-project#1563)

* Faiss SQFP16 Range Validation and Clipping (opensearch-project#1562)

* Add Range Validation for SQFP16 (opensearch-project#1493)

* Add Range Validation for SQFP16 Vector Data

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add index setting to clip vector data to FP16 range

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add CHANGELOG

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add an encoder parameter to clip fp16 range

Signed-off-by: Naveen Tatikonda <[email protected]>

* Address Review Comments

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add BWC Tests

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>

* SQFP16 Range Validation for Faiss IVF Models (opensearch-project#1557)

* SQFP16 Range Validation for Faiss IVF Models

Signed-off-by: Naveen Tatikonda <[email protected]>

* Address Review Comments

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>

* Rebase Changes

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit d63ce27)

* Fix EntityUtils package

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>
Co-authored-by: Naveen Tatikonda <[email protected]>
…earch-project#1565)

* Add release notes for 2.13.0 release

Signed-off-by: Varun Jain <[email protected]>

* Add release notes for 2.13.0 release

Signed-off-by: Varun Jain <[email protected]>

---------

Signed-off-by: Varun Jain <[email protected]>
(cherry picked from commit 9a38cfc)

Co-authored-by: Varun Jain <[email protected]>
…pensearch-project#1579)

* Add no new development notice to perf tool and OSB

Added notice to inform developers to consider adding new features to OSB
Add no feature development notice to OSB

Signed-off-by: Vijayan Balasubramanian <[email protected]>
(cherry picked from commit 17bbbd9)

Co-authored-by: Vijayan Balasubramanian <[email protected]>
Signed-off-by: opensearch-ci-bot <[email protected]>
Co-authored-by: opensearch-ci-bot <[email protected]>
…ctors to JNI layer functionality. (opensearch-project#1583) (opensearch-project#1584)

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit cc91c7c)

Co-authored-by: Navneet Verma <[email protected]>
Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit 653e7eb)
) (opensearch-project#1587)

* support script score when doc value is disabled

Signed-off-by: panguixin <[email protected]>

* add test

Signed-off-by: panguixin <[email protected]>

* apply review comments

Signed-off-by: panguixin <[email protected]>

* fix test

Signed-off-by: panguixin <[email protected]>

---------

Signed-off-by: panguixin <[email protected]>
(cherry picked from commit 771c4b5)
…layer to enable creation of larger segments for vector indices (opensearch-project#1604) (opensearch-project#1608)

Changes include:
1. Add the interface for streaming the vectors from java to jni layer with initial capacity (opensearch-project#1586)
2. Integrating storeVectors interfaces with createIndex and createIndexTemplate functions. (opensearch-project#1588)
3. Update KNN80BinaryDocValues reader count live docs and use live docs as initial capacity to initialize vector address(opensearch-project#1595)
4. Move free vectorAddress from Java to JNI layer to reduce the memory footprint for Nmslib (opensearch-project#1602)

Signed-off-by: Navneet Verma <[email protected]>
… minor optimization in KNNCodec (opensearch-project#1613) (opensearch-project#1615)

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit b48ab30)

Co-authored-by: Navneet Verma <[email protected]>
* [k-NN] Add Clear Cache API (opensearch-project#740)

* Add Clear Cache API

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add Unit and Integration tests

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add BWC Tests

Signed-off-by: Naveen Tatikonda <[email protected]>

* Add CHANGELOG

Signed-off-by: Naveen Tatikonda <[email protected]>

* Address Review Comments

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit 12f4a51)
Signed-off-by: Naveen Tatikonda <[email protected]>

* Fix Failing Clear Cache API Test (opensearch-project#1336)

Signed-off-by: Naveen Tatikonda <[email protected]>

---------

Signed-off-by: Naveen Tatikonda <[email protected]>
Co-authored-by: Naveen Tatikonda <[email protected]>
)

Creates a new shared non-jni library that the jni libraries can depend
on. This is to resolve a build issue on windows that is coming from
nmslib not being able to find symbols in the jni common library. The
net result will be that we add one more shared library.

In addition, I removed all the CPack code from CMakeLists because we
dont use it.

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit dc0953a)
…search-project#1626)

* Add arm64 check when SIMD is disabled

Signed-off-by: Ryan Bogan <[email protected]>

* Add Changelog entry

Signed-off-by: Ryan Bogan <[email protected]>

* Change entry in changelog to infrastructure

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit a2bb6cc)

Co-authored-by: Ryan Bogan <[email protected]>
…ch-project#1637)

(cherry picked from commit 730b7e4)
Signed-off-by: Naveen Tatikonda <[email protected]>

Co-authored-by: Naveen Tatikonda <[email protected]>
Fixes bug where we were not creating stored field type for knn_vector
even when the mapping parameter is passed. Along with this, clean up
the field mapper implementations.

Add relevant uTs and iTs to ensure functionality is working as expected.


(cherry picked from commit 699510d)

Signed-off-by: John Mazanec <[email protected]>
…pensearch-project#1644)

* Remove transport calls in TrainingJobRunner and TrainingJobClusterStateListener

Signed-off-by: Ryan Bogan <[email protected]>

* Fix tests

Signed-off-by: Ryan Bogan <[email protected]>

* Add changelog

Signed-off-by: Ryan Bogan <[email protected]>

* Fix CMake Faiss bug

Signed-off-by: Ryan Bogan <[email protected]>

* Add state checks for existing cluster metadata calls

Signed-off-by: Ryan Bogan <[email protected]>

* Remove CMake bug fix

Signed-off-by: Ryan Bogan <[email protected]>

* Fix changelog

Signed-off-by: Ryan Bogan <[email protected]>

* Fix failing tests

Signed-off-by: Ryan Bogan <[email protected]>

* Refactor and add two more created state checks

Signed-off-by: Ryan Bogan <[email protected]>

* Rebase and fix new tests

Signed-off-by: Ryan Bogan <[email protected]>

* Refactor created checks and modify error messages

Signed-off-by: Ryan Bogan <[email protected]>

* Refactor cluster state listener transport calls

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit dc8eb6b)

Co-authored-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
(cherry picked from commit 11342be)

Co-authored-by: Peter Zhu <[email protected]>
By commiting the patch changes, this commit prevents the libraries to be
built from scratch every time cmake is ran. This will save additional
build time.

In addition to this, this commit separates out the different
functionality to make the build system more readable. We can continue to
iterate on this in the future.

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit c35f6ad)

Co-authored-by: John Mazanec <[email protected]>
* Ensure ignore_unmapped is set to correct value

Signed-off-by: Ryan Bogan <[email protected]>

* Add changelog entry

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
…#1657)

- Adds clarifications for developing on Mac M series
- Minor misc updates

Signed-off-by: Tejas Shah <[email protected]>
(cherry picked from commit f51dd64)

Co-authored-by: Tejas Shah <[email protected]>
…search-project#1652) (opensearch-project#1658)

* Use 0.95 as default ratio for lucene radial search traversal similarity (opensearch-project#1619)

Signed-off-by: Junqiu Lei <[email protected]>
VijayanB and others added 15 commits January 28, 2025 14:34
…#2449)

Generates the vector source in the source field from the
KnnVectorsFormat or BVD. It does this by adding StoredFieldsFormat to
our existing custom codec.

Currently, feature is experimental and behind a feature flag via index 
setting. In the future, we need to iterate to improve performance 
and stability for nested/object portions.

Signed-off-by: John Mazanec <[email protected]>
* Adds debug logs for KNNQuery and KNNWeight

Signed-off-by: Tejas Shah <[email protected]>

* Adds check to see if log is enabled to start and stop StopWatch

Signed-off-by: Tejas Shah <[email protected]>

* Addressing comments on the PR

Signed-off-by: Tejas Shah <[email protected]>

* Adds shard and segment info in the logs

Signed-off-by: Tejas Shah <[email protected]>

* Removes unnecessary segment name param from exact search

Signed-off-by: Tejas Shah <[email protected]>

* Fixes the build

Signed-off-by: Tejas Shah <[email protected]>

---------

Signed-off-by: Tejas Shah <[email protected]>
…ch-project#2474)

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit abae323)

Co-authored-by: John Mazanec <[email protected]>
opensearch-project#2487)

* Adding Vikasht34 as the maintainer in k-NN repo



* Update MAINTAINERS.md



---------

Signed-off-by: Navneet Verma <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
…urce (opensearch-project#2497)

Fixes a bug in the derived source writer where we are reading the entire
bytes array from the bytes ref instead of just the offset+length.

Also reuses readers to prevent memory leak

Along with that, touches up the ParentChildHelper (no prod impact) and
also adds some unit tests.

Signed-off-by: John Mazanec <[email protected]>
…ith different gcc versions (opensearch-project#2506) (opensearch-project#2508)

* Update build gradle to separate nmslib / faiss generation

Signed-off-by: Peter Zhu <[email protected]>

* Update scripts/build.sh to separate enable gcc switch

Signed-off-by: Peter Zhu <[email protected]>

* Remove test comments

Signed-off-by: Peter Zhu <[email protected]>

* Remove test comments

Signed-off-by: Peter Zhu <[email protected]>

* Remove test comments

Signed-off-by: Peter Zhu <[email protected]>

* Updating restart and rolling upgrade bwc test bundle.gradle

Signed-off-by: Peter Zhu <[email protected]>

* Enforce gcc10 for nmslib to compile and avx512_spr have no-op

Signed-off-by: Peter Zhu <[email protected]>

---------

Signed-off-by: Peter Zhu <[email protected]>
(cherry picked from commit 107c4f1)

Co-authored-by: Peter Zhu <[email protected]>
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.