From e554c06c3976f981eb48b47b5e9ea5d0b24a652b Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Wed, 9 Oct 2024 19:29:56 +0800 Subject: [PATCH] Update version info to 0.4.0-dev3 (#1982) ### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Other (please describe): Update version info Signed-off-by: Jin Hai --- README.md | 2 +- benchmark/remote_infinity/remote_query_benchmark.cpp | 2 +- client/cpp/infinity_client.cpp | 2 +- docs/getstarted/build_from_source.mdx | 6 +++--- docs/getstarted/deploy_infinity_server.mdx | 10 +++++----- docs/getstarted/quickstart.md | 2 +- docs/references/pysdk_api_reference.md | 6 +++--- pyproject.toml | 2 +- python/infinity_sdk/infinity/remote_thrift/client.py | 3 ++- python/infinity_sdk/pyproject.toml | 2 +- src/network/infinity_thrift_service.cpp | 1 + src/network/infinity_thrift_service.cppm | 2 +- 12 files changed, 21 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 88b603d6be..75f63c75e1 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Supports a wide range of data types including strings, numerics, vectors, and mo Infinity supports two working modes, embedded mode and client-server mode. Infinity's embedded mode enables you to quickly embed Infinity into your Python applications, without the need to connect to a separate backend server. The following shows how to operate in embedded mode: ```bash - pip install infinity-embedded-sdk==0.4.0.dev2 + pip install infinity-embedded-sdk==0.4.0.dev3 ``` 1. Use Infinity to conduct a dense vector search: ```python diff --git a/benchmark/remote_infinity/remote_query_benchmark.cpp b/benchmark/remote_infinity/remote_query_benchmark.cpp index c0a4ced9c2..b1f1ee9c72 100644 --- a/benchmark/remote_infinity/remote_query_benchmark.cpp +++ b/benchmark/remote_infinity/remote_query_benchmark.cpp @@ -51,7 +51,7 @@ struct InfinityClient { transport->open(); CommonResponse response; ConnectRequest request; - request.__set_client_version(18); // 0.4.0-dev1 + request.__set_client_version(20); // 0.4.0-dev3 client->Connect(response, request); session_id = response.session_id; } diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index eb26058dce..cb257686e7 100644 --- a/client/cpp/infinity_client.cpp +++ b/client/cpp/infinity_client.cpp @@ -25,7 +25,7 @@ Client Client::Connect(const std::string &ip_address, uint16_t port) { transport->open(); CommonResponse response; ConnectRequest request; - request.__set_client_version(19); // 0.4.0.dev2 + request.__set_client_version(20); // 0.4.0.dev3 client->Connect(response, request); return {socket, transport, protocol, std::move(client), response.session_id}; } diff --git a/docs/getstarted/build_from_source.mdx b/docs/getstarted/build_from_source.mdx index 1d8d312c78..0b4b2ed3fd 100644 --- a/docs/getstarted/build_from_source.mdx +++ b/docs/getstarted/build_from_source.mdx @@ -260,7 +260,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.4.0.dev2 + pip install infinity-sdk==0.4.0.dev3 ``` 3. Run the functional tests: @@ -282,7 +282,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.4.0.dev2 + pip install infinity-sdk==0.4.0.dev3 ``` 3. Run the functional tests: @@ -305,7 +305,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.4.0.dev2 + pip install infinity-sdk==0.4.0.dev3 ``` 3. Run the functional tests: diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index 37a2798d57..6139203d6f 100644 --- a/docs/getstarted/deploy_infinity_server.mdx +++ b/docs/getstarted/deploy_infinity_server.mdx @@ -30,7 +30,7 @@ This approach allows you to call Infinity as an embedded Python module. To deplo ### Install Infinity as a module ``` -pip install infinity-embedded-sdk==0.4.0.dev2 +pip install infinity-embedded-sdk==0.4.0.dev3 ``` ### Create an Infinity object @@ -98,7 +98,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using ### Install Infinity client ``` -pip install infinity-sdk==0.4.0.dev2 +pip install infinity-sdk==0.4.0.dev3 ``` ### Connect to Infinity Server and run a dense vector search @@ -148,7 +148,7 @@ This section provides instructions on deploying Infinity using binary package on Fedora/RHEL/CentOS/OpenSUSE ```bash -sudo rpm -i infinity-0.4.0.dev2-x86_64.rpm +sudo rpm -i infinity-0.4.0.dev3-x86_64.rpm ``` ```bash @@ -159,7 +159,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.4.0.dev2-x86_64.deb +sudo dpkg -i infinity-0.4.0.dev3-x86_64.deb ``` ```bash @@ -172,7 +172,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.4.0.dev2 +pip install infinity-sdk==0.4.0.dev3 ``` ### Connect to Infinity Server and run a dense vector search diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index 2b8db32e8b..a9cd680efc 100644 --- a/docs/getstarted/quickstart.md +++ b/docs/getstarted/quickstart.md @@ -19,7 +19,7 @@ If you wish to embed Infinity into your Python application without the need for 1. Install the Infinity-embedded SDK: ```bash - pip install infinity-embedded-sdk==0.4.0.dev2 + pip install infinity-embedded-sdk==0.4.0.dev3 ``` 2. Use Infinity to conduct a dense vector search: ```python diff --git a/docs/references/pysdk_api_reference.md b/docs/references/pysdk_api_reference.md index 726175d252..64254f6583 100644 --- a/docs/references/pysdk_api_reference.md +++ b/docs/references/pysdk_api_reference.md @@ -37,7 +37,7 @@ The `uri` here can be either a local directory in `str` format or a `NetworkAddr :::tip IMPORTANT - When setting `uri` as `"/absolute/path/to/save/to"`, ensure you: - - Install the embedded SDK: `pip install infinity-embedded-sdk==` + - Install the embedded SDK: `pip install infinity-embedded-sdk==` - Import the `infinity_embedded` module: `import infinity_embedded`. - When setting `uri` as `NetworkAddress`, ensure you: - Install the Infinity SDK: `pip install infinity==` @@ -54,7 +54,7 @@ When connecting to Infinity in client-server mode, ensure that the client versio | v0.2.0 | v0.2.0 | | v0.2.1 | v0.2.1 | | v0.3.0 | v0.3.0 | -| v0.4.0.dev2 | v0.4.0.dev2 | +| v0.4.0.dev3 | v0.4.0.dev3 | If the versions do not match, please update your client or server to ensure compatibility. @@ -83,7 +83,7 @@ This allows for bug fixes without requiring changes to the configuration file. #### Connect to the local directory of Infinity -From v0.4.0.dev1 onwards, Infinity also gives you the option to connect to the Infinity service just like calling a Python module. If you have installed the Infinity client via `pip install infinity-embedded-sdk==`, you can connect to Infinity and save all related data in a local directory: +From v0.4.0.dev3 onwards, Infinity also gives you the option to connect to the Infinity service just like calling a Python module. If you have installed the Infinity client via `pip install infinity-embedded-sdk==`, you can connect to Infinity and save all related data in a local directory: ```python import infinity_embedded diff --git a/pyproject.toml b/pyproject.toml index 7f5abade54..23736ed886 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build" [project] name = "infinity_embedded_sdk" -version = "0.4.0.dev2" +version = "0.4.0.dev3" requires-python = ">=3.10" dependencies = [ "sqlglot~=11.7.0", diff --git a/python/infinity_sdk/infinity/remote_thrift/client.py b/python/infinity_sdk/infinity/remote_thrift/client.py index 3c6fb3c71b..f1fcdda09a 100644 --- a/python/infinity_sdk/infinity/remote_thrift/client.py +++ b/python/infinity_sdk/infinity/remote_thrift/client.py @@ -66,7 +66,8 @@ def reconnect(self): # version: 0.3.0.dev8 and 0.3.0, client_version: 17 # version: 0.4.0.dev1, client_version: 18 # version: 0.4.0.dev2, client_version: 19 - res = self.client.Connect(ConnectRequest(client_version=19)) # 0.4.0.dev2 + # version: 0.4.0.dev3, client_version: 20 + res = self.client.Connect(ConnectRequest(client_version=20)) # 0.4.0.dev3 if res.error_code != 0: raise InfinityException(res.error_code, res.error_msg) self.session_id = res.session_id diff --git a/python/infinity_sdk/pyproject.toml b/python/infinity_sdk/pyproject.toml index d88bc9cec8..a5a18ae001 100644 --- a/python/infinity_sdk/pyproject.toml +++ b/python/infinity_sdk/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "infinity-sdk" -version = "0.4.0.dev2" +version = "0.4.0.dev3" requires-python = ">=3.10" dependencies = [ "sqlglot~=11.7.0", diff --git a/src/network/infinity_thrift_service.cpp b/src/network/infinity_thrift_service.cpp index 938960f3ab..878f040c44 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -85,6 +85,7 @@ ClientVersions::ClientVersions() { client_version_map_[17] = String("0.3.0"); client_version_map_[18] = String("0.4.0.dev1"); client_version_map_[19] = String("0.4.0.dev2"); + client_version_map_[19] = String("0.4.0.dev3"); } Pair ClientVersions::GetVersionByIndex(i64 version_index) { diff --git a/src/network/infinity_thrift_service.cppm b/src/network/infinity_thrift_service.cppm index 1a2dfe5ba2..9acf6cd7d9 100644 --- a/src/network/infinity_thrift_service.cppm +++ b/src/network/infinity_thrift_service.cppm @@ -59,7 +59,7 @@ struct ClientVersions { export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf { private: static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]"; - static constexpr i64 current_version_index_{19}; // 0.4.0.dev2 + static constexpr i64 current_version_index_{20}; // 0.4.0.dev3 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;