From dfe9caf19a59b73406817d393f1a24e97dde81a4 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Sat, 9 Nov 2024 12:53:13 +0800 Subject: [PATCH] Update version info to 0.5.0-dev2 (#2214) ### What problem does this PR solve? Update version to 0.5.0-dev2 ### Type of change - [x] Documentation Update - [x] Refactoring 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 +- 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 +- 11 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 63028269db..5cffdadb09 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.5.0.dev1 + pip install infinity-embedded-sdk==0.5.0.dev2 ``` 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 bd48476ccd..71186b1a68 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(23); // 0.5.0.dev1 + request.__set_client_version(24); // 0.5.0.dev2 client->Connect(response, request); session_id = response.session_id; } diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index eeba02818d..ac54c0b0d1 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(23); // 0.5.0.dev1 + request.__set_client_version(24); // 0.5.0.dev2 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 2a90930681..eab4f8272e 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.5.0.dev1 + pip install infinity-sdk==0.5.0.dev2 ``` 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.5.0.dev1 + pip install infinity-sdk==0.5.0.dev2 ``` 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.5.0.dev1 + pip install infinity-sdk==0.5.0.dev2 ``` 3. Run the functional tests: diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index b77a9b7ab8..8b86b65f55 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 a Python module. To deploy Infinity ### Install Infinity as a module ``` -pip install infinity-embedded-sdk==0.5.0.dev1 +pip install infinity-embedded-sdk==0.5.0.dev2 ``` ### Create an Infinity object @@ -97,7 +97,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.5.0.dev1 +pip install infinity-sdk==0.5.0.dev2 ``` ### Connect to Infinity Server and run a dense vector search @@ -147,7 +147,7 @@ This section provides instructions on deploying Infinity using binary package on Fedora/RHEL/CentOS/OpenSUSE ```bash -sudo rpm -i infinity-0.5.0.dev1-x86_64.rpm +sudo rpm -i infinity-0.5.0.dev2-x86_64.rpm ``` ```bash @@ -158,7 +158,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.5.0.dev1-x86_64.deb +sudo dpkg -i infinity-0.5.0.dev2-x86_64.deb ``` ```bash @@ -171,7 +171,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.5.0.dev1 +pip install infinity-sdk==0.5.0.dev2 ``` ### Connect to Infinity Server and run a dense vector search diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index 6516c3e3c4..fc517f2cc6 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.5.0.dev1 + pip install infinity-embedded-sdk==0.5.0.dev2 ``` 2. Use Infinity to conduct a dense vector search: ```python diff --git a/pyproject.toml b/pyproject.toml index bb1adf962f..c298cf36ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build" [project] name = "infinity_embedded_sdk" -version = "0.5.0.dev1" +version = "0.5.0.dev2" 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 ee1af20744..bc5be4183e 100644 --- a/python/infinity_sdk/infinity/remote_thrift/client.py +++ b/python/infinity_sdk/infinity/remote_thrift/client.py @@ -70,7 +70,8 @@ def reconnect(self): # version: 0.4.0.dev4, client_version: 21 # version: 0.4.0.dev5 and 0.4.0, client_version: 22 # version: 0.5.0.dev1, client_version: 23 - res = self.client.Connect(ConnectRequest(client_version=23)) # 0.5.0.dev1 + # version: 0.5.0.dev2, client_version: 24 + res = self.client.Connect(ConnectRequest(client_version=24)) # 0.5.0.dev2 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 6e7e7ed2f8..d0d45eb11a 100644 --- a/python/infinity_sdk/pyproject.toml +++ b/python/infinity_sdk/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "infinity-sdk" -version = "0.5.0.dev1" +version = "0.5.0.dev2" 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 3f090bf971..7057a4f6ca 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -90,6 +90,7 @@ ClientVersions::ClientVersions() { client_version_map_[21] = String("0.4.0.dev4"); client_version_map_[22] = String("0.4.0"); client_version_map_[23] = String("0.5.0.dev1"); + client_version_map_[24] = String("0.5.0.dev2"); } Pair ClientVersions::GetVersionByIndex(i64 version_index) { diff --git a/src/network/infinity_thrift_service.cppm b/src/network/infinity_thrift_service.cppm index ba20361b58..3754082710 100644 --- a/src/network/infinity_thrift_service.cppm +++ b/src/network/infinity_thrift_service.cppm @@ -60,7 +60,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_{23}; // 0.5.0.dev1 + static constexpr i64 current_version_index_{24}; // 0.5.0.dev2 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;