Skip to content

Conversation

@waileong
Copy link
Contributor

  • Updated SearchRequest.java to make the class non-final.
  • Added MilvusSearchRequest with specific Milvus parameters such as nativeExpression and searchParamsJson.
  • Modified doSimilaritySearch method in MilvusVectorStore to handle these new fields from MilvusSearchRequest.

Closes #2294, #2298

…earchRequest` subclass that includes Milvus-specific fields for native expressions and search parameters.

- Updated `SearchRequest.java` to make the class non-final.
- Added `MilvusSearchRequest` with specific Milvus parameters such as `nativeExpression` and `searchParamsJson`.
- Modified `doSimilaritySearch` method in `MilvusVectorStore` to handle these new fields from `MilvusSearchRequest`.

Signed-off-by: waileong <[email protected]>
@ilayaperumalg ilayaperumalg self-assigned this Feb 27, 2025
@ilayaperumalg ilayaperumalg added this to the 1.0.0-M7 milestone Feb 27, 2025
@ilayaperumalg
Copy link
Member

ilayaperumalg commented Mar 3, 2025

@waileong Thanks for the PR implementing the custom SearchRequest for Milvus. The changes look good! Would you be able to add a test and a sample in the documentation as part of this PR?

waileong added 3 commits March 4, 2025 18:44
Introduce comprehensive unit tests to validate the functionality of MilvusVectorStore and MilvusSearchRequest, including scenarios for native and filter expressions. Refactor MilvusVectorStore to improve filter expression handling by introducing a helper method for converted expressions.

Signed-off-by: waileong <[email protected]>
Introduced sections explaining MilvusSearchRequest's parameters, `nativeExpression`, and `searchParamsJson`, with examples for enhanced clarity. This update provides guidance on leveraging Milvus-specific features for precise filtering and optimal search performance.

Signed-off-by: waileong <[email protected]>
@waileong
Copy link
Contributor Author

waileong commented Mar 4, 2025

@ilayaperumalg I've added the test case and documentation. Please review and let me know if any further changes are needed. Thanks!

@ilayaperumalg
Copy link
Member

@waileong Thank you for updating the doc and tests. Rebased and merged as e128a39

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.

Milvus Vector - Unable to Set nprobe in doSimilaritySearch for Default IVF_FLAT When initializeSchema = true

2 participants