From 1467326b9cef963d3a214960324b2a16abbe71af Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Mon, 5 Aug 2024 13:30:56 +0800 Subject: [PATCH] Update version info of 0.3.0.dev3 (#1584) ### What problem does this PR solve? Release 0.3.0.dev3 server and client ### Type of change - [x] Other (please describe): Update version info before release Signed-off-by: Jin Hai --- README.md | 2 +- benchmark/remote_infinity/remote_query_benchmark.cpp | 2 +- client/cpp/infinity_client.cpp | 2 +- docs/getstarted/deploy_infinity_server.mdx | 10 +++++----- docs/getstarted/quickstart.md | 2 +- python/infinity/remote_thrift/client.py | 3 ++- src/network/infinity_thrift_service.cpp | 1 + src/network/infinity_thrift_service.cppm | 2 +- 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index dd0e967211..75d5d760ef 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, also available as a Python module, eliminates the need for a separate back-end server and all the complex communication settings. Using `pip install` and `import infinity`, you can quickly build a local AI application in Python, leveraging the world's fastest and the most powerful RAG database: ```bash - pip install infinity-sdk==0.3.0.dev1 + pip install infinity-sdk==0.3.0.dev3 ``` ```python diff --git a/benchmark/remote_infinity/remote_query_benchmark.cpp b/benchmark/remote_infinity/remote_query_benchmark.cpp index 4534f4807b..d4e9454ec2 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(11); // 0.3.0.dev1 + request.__set_client_version(12); // 0.3.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 0d4a28f510..70b1beda7f 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(11); // 0.3.0.dev1 + request.__set_client_version(12); // 0.3.0.dev3 client->Connect(response, request); return {socket, transport, protocol, std::move(client), response.session_id}; } diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index 8f19c2c87e..b36d0ae5a5 100644 --- a/docs/getstarted/deploy_infinity_server.mdx +++ b/docs/getstarted/deploy_infinity_server.mdx @@ -30,7 +30,7 @@ This approach allows you to embed Infinity as a module in a Python application. ### Install Infinity as a module ``` -pip install infinity-sdk==0.3.0.dev1 +pip install infinity-sdk==0.3.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.3.0.dev1 +pip install infinity-sdk==0.3.0.dev3 ``` ### Connect to Infinity Server @@ -140,14 +140,14 @@ This section provides instructions on deploying Infinity using binary package on Fedora/RHEL/CentOS/OpenSUSE ```bash -sudo rpm -i infinity-0.3.0.dev1-x86_64.rpm +sudo rpm -i infinity-0.3.0.dev3-x86_64.rpm sudo systemctl start infinity ``` ```bash -sudo dpkg -i infinity-0.3.0.dev1-x86_64.deb +sudo dpkg -i infinity-0.3.0.dev3-x86_64.deb sudo systemctl start infinity ``` @@ -157,7 +157,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.3.0.dev1 +pip install infinity-sdk==0.3.0.dev3 ``` ### Connect to Infinity Server diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index c0ba4dcfa1..be3a563496 100644 --- a/docs/getstarted/quickstart.md +++ b/docs/getstarted/quickstart.md @@ -17,7 +17,7 @@ Infinity, also available as a Python module, eliminates the need for a separate 1. Install Infinity as a module: ```bash - pip install infinity-sdk==0.3.0.dev1 + pip install infinity-sdk==0.3.0.dev3 ``` 2. Use Infinity to conduct a KNN search: ```python diff --git a/python/infinity/remote_thrift/client.py b/python/infinity/remote_thrift/client.py index af6e65eb7d..669ae6d835 100644 --- a/python/infinity/remote_thrift/client.py +++ b/python/infinity/remote_thrift/client.py @@ -58,7 +58,8 @@ def reconnect(self): # version: 0.2.1.dev5, client_version: 9 # version: 0.2.1, client_version: 10 # version: 0.3.0.dev1, client_version: 11 - res = self.client.Connect(ConnectRequest(client_version=11)) + # version: 0.3.0.dev3, client_version: 12 + res = self.client.Connect(ConnectRequest(client_version=12)) if res.error_code != 0: raise InfinityException(res.error_code, res.error_msg) self.session_id = res.session_id diff --git a/src/network/infinity_thrift_service.cpp b/src/network/infinity_thrift_service.cpp index 6d01407fd9..2eff529db0 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -77,6 +77,7 @@ ClientVersions::ClientVersions() { client_version_map_[9] = String("0.2.1.dev5"); client_version_map_[10] = String("0.2.1"); client_version_map_[11] = String("0.3.0.dev1"); + client_version_map_[12] = String("0.3.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 6bdfd7d105..ccc1d851d6 100644 --- a/src/network/infinity_thrift_service.cppm +++ b/src/network/infinity_thrift_service.cppm @@ -57,7 +57,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_{11}; // 0.3.0.dev1 + static constexpr i64 current_version_index_{12}; // 0.3.0.dev3 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;