Update milvus rust sdk to milvus2.5#95
Closed
Yinwei-Yu wants to merge 2 commits intomilvus-io:mainfrom
Closed
Conversation
Collaborator
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Yinwei-Yu The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Collaborator
|
Welcome @Yinwei-Yu! It looks like this is your first PR to milvus-io/milvus-sdk-rust 🎉 |
|
@Yinwei-Yu Please associate the related issue to the body of your Pull Request. (eg. “issue: #187”) |
Update proto files and add some releated struct fields due to the changes. Add alter_collection_field() Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> add collection apis: - alter_collection_properties - create_schema - describe_alias - drop_collection_properties - list_aliases - rename_collection Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add apis for query and partition What's changed: 1. client.rs: Add comment for list_aliases 2. collectoin.rs: Change the return type for describe_collection() from `collection` to `DescribeCollection`,containing more info than before,which now acts like pymilvus. 3. partitions.rs: Add load_partitions and release_partitions,following their options' struct. 4. query.rs: Add get() and it's following functions and struct,like extract_primary_field and pack_pks_expr,like pymilvus.Add options for query() to use and some build functions for QueryOptions. 5. test/: Change some settings and details to adapt to the changes above Why Change Some Struct: To catch up with pymivus,we need to approve optional params,so we need to change the option struct Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Update search() and add hybrid_search() Update search() function following the pymilvus'api.Add hybrid_search() function and it's related structures and help_functions(). Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add query_iterator() in iterator and add an example file. Add the query_iterator() function which return an iterator on QueryResult,public api includs next().To do this,add two Error type in src/error.rs.To test functions with data,I modifed the create_test_collection() function in tests/common/mod.rs. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add search_iterator() and example. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add database apis. Add full database apis including create,alter,drop,etc. To add using_database(),I need to add a member to client Struct,db_interceptor.And changed some codes with respect to it. Then I add an example file to test the apis,which works well. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add resource group apis. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add apis in Management. Move some index apis to src/index/utils,and add some more apis.Add two Index type.Fix some related errors due to the change. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add all apis for authentication. In this commit I've complete all the apis related to authentication,including users,role,privilege,privilege groups,etc. And I've added an example to show how to use these apis and test the apis to a certain extent. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Delete some unecessary 'use's in some file. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> Add comments doc to query.rs Signed-off-by: Yinwei Li <yinwei.li@zilliz.com> [bugfix]Change AnnSearchRequest and The params settings for search and hybrid_search. Changed AnnSearchRequest's params from KeyValuePair to Vec<KeyValuePair> to enable different search options for different anns_field. Change the default params setting mothod,following pymilvus. Add some more graceful error handlers to raw_id.Now if the search result is null,the code will throw an error and continue to run. Signed-off-by: Yinwei Li <yinwei.li@zilliz.com>
d80b119 to
f342185
Compare
|
please use |
Signed-off-by: Yinwei Li <yinwei.li@zilliz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr aims to update the milvus rust sdk to milvus 2.5.