From ba6dd9b710bfb323efe72196e5f000650e9eb92a Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Tue, 24 Dec 2024 10:27:46 +0800 Subject: [PATCH 1/2] Fix upgrade version Signed-off-by: Jin Hai --- python/infinity_sdk/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/infinity_sdk/pyproject.toml b/python/infinity_sdk/pyproject.toml index ae9139a304..8ff56742f4 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" +version = "0.5.1" requires-python = ">=3.10" dependencies = [ "sqlglot~=11.7.0", From 62e9fa462c167e1ef9bd483e0a9c6e3828c6baa7 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Tue, 24 Dec 2024 10:37:31 +0800 Subject: [PATCH 2/2] Update version info to 0.5.2 Signed-off-by: Jin Hai --- CMakeLists.txt | 4 ++-- 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 +- example/README.md | 4 ++-- pyproject.toml | 2 +- python/infinity_sdk/README.md | 2 +- python/infinity_sdk/infinity/remote_thrift/client.py | 4 ++-- python/infinity_sdk/pyproject.toml | 2 +- src/network/infinity_thrift_service.cpp | 2 +- src/network/infinity_thrift_service.cppm | 2 +- src/unit_test/main/config.cpp | 6 +++--- 15 files changed, 26 insertions(+), 26 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 525e92b4f5..e6bdc0d224 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.28.1) -project(infinity VERSION 0.5.1) +project(infinity VERSION 0.5.2) if(NOT CMAKE_GENERATOR STREQUAL "Ninja") message(FATAL_ERROR "This project requires the Ninja generator. Refers to https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html#generator-support") @@ -260,7 +260,7 @@ if(DEFINED CPACK_PACKAGE_VERSION) string(REPLACE "-" "." CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}") endif() if(NOT DEFINED CPACK_PACKAGE_VERSION OR CPACK_PACKAGE_VERSION STREQUAL "") - set(CPACK_PACKAGE_VERSION "0.5.1") + set(CPACK_PACKAGE_VERSION "0.5.2") endif() set(CPACK_PACKAGE_RELEASE 1) set(CPACK_PACKAGE_CONTACT "Zhichang Yu ") diff --git a/README.md b/README.md index 42b223d084..4357cc0ae4 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.1 + pip install infinity-embedded-sdk==0.5.2 ``` 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 e96285f70f..9f99e67f61 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(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 + request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2 client->Connect(response, request); session_id = response.session_id; } diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index 9d1e9cf06c..38f7895c16 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(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 + request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2 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 b8a87e84fb..fd6512f32a 100644 --- a/docs/getstarted/build_from_source.mdx +++ b/docs/getstarted/build_from_source.mdx @@ -264,7 +264,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.5.1 + pip install infinity-sdk==0.5.2 ``` 3. Run the functional tests: @@ -286,7 +286,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.5.1 + pip install infinity-sdk==0.5.2 ``` 3. Run the functional tests: @@ -309,7 +309,7 @@ cmake --build . -t test_main 2. Install Python sdk of infinity: ```bash - pip install infinity-sdk==0.5.1 + pip install infinity-sdk==0.5.2 ``` 3. Run the functional tests: diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index 701e52e2d1..599f586117 100644 --- a/docs/getstarted/deploy_infinity_server.mdx +++ b/docs/getstarted/deploy_infinity_server.mdx @@ -34,7 +34,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.1 +pip install infinity-embedded-sdk==0.5.2 ``` ### Create an Infinity object @@ -101,7 +101,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.1 +pip install infinity-sdk==0.5.2 ``` ### Run a vector search @@ -151,7 +151,7 @@ This section provides instructions on deploying Infinity using binary package on Fedora/RHEL/CentOS/OpenSUSE ```bash -sudo rpm -i infinity-0.5.1-x86_64.rpm +sudo rpm -i infinity-0.5.2-x86_64.rpm ``` ```bash @@ -162,7 +162,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.5.1-x86_64.deb +sudo dpkg -i infinity-0.5.2-x86_64.deb ``` ```bash @@ -175,7 +175,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.5.1 +pip install infinity-sdk==0.5.2 ``` ### Run a vector search diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index a228bc279e..dc91e6fb43 100644 --- a/docs/getstarted/quickstart.md +++ b/docs/getstarted/quickstart.md @@ -21,7 +21,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.1 + pip install infinity-embedded-sdk==0.5.2 ``` 2. Use Infinity to conduct a dense vector search: ```python diff --git a/example/README.md b/example/README.md index 98bad84455..f0497f0a1e 100644 --- a/example/README.md +++ b/example/README.md @@ -5,13 +5,13 @@ The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it ```shell -pip install infinity-sdk==0.5.1 +pip install infinity-sdk==0.5.2 ``` To use Infinity locally as a Python module, install the Infinity Embedded SDK: ```shell -pip install infinity-embedded-sdk==0.5.1 +pip install infinity-embedded-sdk==0.5.2 ``` Once the installation completes, run some simple examples: diff --git a/pyproject.toml b/pyproject.toml index 04803b9d1b..025a57d3ea 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.1" +version = "0.5.2" requires-python = ">=3.10" dependencies = [ "sqlglot~=11.7.0", diff --git a/python/infinity_sdk/README.md b/python/infinity_sdk/README.md index 66ca70dc43..c28cc5e31c 100644 --- a/python/infinity_sdk/README.md +++ b/python/infinity_sdk/README.md @@ -63,7 +63,7 @@ Infinity supports two working modes, embedded mode and client-server mode. The f 2. Install the `infinity-sdk` package: ```bash - pip install infinity-sdk==0.5.1 + pip install infinity-sdk==0.5.2 ``` 3. Use Infinity to conduct a dense vector search: diff --git a/python/infinity_sdk/infinity/remote_thrift/client.py b/python/infinity_sdk/infinity/remote_thrift/client.py index 65a6a2a395..919896d58c 100644 --- a/python/infinity_sdk/infinity/remote_thrift/client.py +++ b/python/infinity_sdk/infinity/remote_thrift/client.py @@ -97,8 +97,8 @@ def _reconnect(self): # version: 0.5.0.dev2, client_version: 24 # version: 0.5.0.dev3, client_version: 25 # version: 0.5.0.dev4 and 0.5.0.dev5, client_version: 26 - # version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1, client_version: 27 - res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 + # version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2, client_version: 27 + res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2 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 8ff56742f4..4f03876620 100644 --- a/python/infinity_sdk/pyproject.toml +++ b/python/infinity_sdk/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "infinity-sdk" -version = "0.5.1" +version = "0.5.2" 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 494798cb03..b71eb18211 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -93,7 +93,7 @@ ClientVersions::ClientVersions() { client_version_map_[24] = String("0.5.0.dev2"); client_version_map_[25] = String("0.5.0.dev3"); client_version_map_[26] = String("0.5.0.dev5"); - client_version_map_[27] = String("0.5.1"); + client_version_map_[27] = String("0.5.2"); } Pair ClientVersions::GetVersionByIndex(i64 version_index) { diff --git a/src/network/infinity_thrift_service.cppm b/src/network/infinity_thrift_service.cppm index 61dba7b075..d8ed496442 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_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 + static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_; diff --git a/src/unit_test/main/config.cpp b/src/unit_test/main/config.cpp index 32fc483d54..36eb37b1b3 100644 --- a/src/unit_test/main/config.cpp +++ b/src/unit_test/main/config.cpp @@ -40,7 +40,7 @@ TEST_F(ConfigTest, test1) { auto status = config.Init(path, nullptr); ASSERT_TRUE(status.ok()); - EXPECT_EQ(config.Version(), "0.5.1"); + EXPECT_EQ(config.Version(), "0.5.2"); EXPECT_EQ(config.TimeZone(), "UTC"); EXPECT_EQ(config.TimeZoneBias(), 8); EXPECT_EQ(config.CPULimit(), std::thread::hardware_concurrency()); @@ -88,7 +88,7 @@ TEST_F(ConfigTest, test2) { auto status = config.Init(path, nullptr); ASSERT_TRUE(status.ok()); - EXPECT_EQ(config.Version(), "0.5.1"); + EXPECT_EQ(config.Version(), "0.5.2"); EXPECT_EQ(config.TimeZone(), "UTC"); EXPECT_EQ(config.TimeZoneBias(), -8); @@ -210,7 +210,7 @@ TEST_F(ConfigTest, TestValidValues) { auto status = config.Init(path, nullptr); ASSERT_TRUE(status.ok()); - EXPECT_EQ(config.Version(), "0.5.1"); + EXPECT_EQ(config.Version(), "0.5.2"); EXPECT_EQ(config.TimeZone(), "UTC"); EXPECT_EQ(config.TimeZoneBias(), -8); EXPECT_EQ(config.CPULimit(), 2);