From 750a39ba83a064d668e7900baeba08dedb6029af Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Tue, 20 Aug 2024 15:34:51 +0800 Subject: [PATCH] Update version info to 0.3.0.dev6 (#1678) ### What problem does this PR solve? Before release 0.3.0.dev6 ### Type of change - [x] Documentation Update 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 5ae319e431..7c69019b22 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.dev5 + pip install infinity-sdk==0.3.0.dev6 ``` ```python diff --git a/benchmark/remote_infinity/remote_query_benchmark.cpp b/benchmark/remote_infinity/remote_query_benchmark.cpp index 9174cf694c..2b5566732e 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(14); // 0.3.0.dev5 + request.__set_client_version(15); // 0.3.0.dev6 client->Connect(response, request); session_id = response.session_id; } diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index 4d7e8ef4f6..8907261cb9 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(14); // 0.3.0.dev5 + request.__set_client_version(15); // 0.3.0.dev6 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 ff692193b1..e91f5b693e 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.dev5 +pip install infinity-sdk==0.3.0.dev6 ``` ### 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.dev5 +pip install infinity-sdk==0.3.0.dev6 ``` ### Connect to Infinity Server @@ -140,7 +140,7 @@ This section provides instructions on deploying Infinity using binary package on Fedora/RHEL/CentOS/OpenSUSE ```bash -sudo rpm -i infinity-0.3.0.dev5-x86_64.rpm +sudo rpm -i infinity-0.3.0.dev6-x86_64.rpm ``` ```bash @@ -151,7 +151,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.3.0.dev5-x86_64.deb +sudo dpkg -i infinity-0.3.0.dev6-x86_64.deb ``` ```bash @@ -172,7 +172,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.3.0.dev5 +pip install infinity-sdk==0.3.0.dev6 ``` ### Connect to Infinity Server diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index eb0057a21b..8f938cdb8d 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 Python module: ```bash - pip install infinity-sdk==0.3.0.dev5 + pip install infinity-sdk==0.3.0.dev6 ``` 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 8b4419c9df..4af6d1367a 100644 --- a/python/infinity/remote_thrift/client.py +++ b/python/infinity/remote_thrift/client.py @@ -61,7 +61,8 @@ def reconnect(self): # version: 0.3.0.dev3, client_version: 12 # version: 0.3.0.dev4, client_version: 13 # version: 0.3.0.dev5, client_version: 14 - res = self.client.Connect(ConnectRequest(client_version=14)) + # version: 0.3.0.dev6, client_version: 15 + res = self.client.Connect(ConnectRequest(client_version=15)) # 0.3.0.dev6 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 0ba0bc37b7..77ce11e912 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -80,6 +80,7 @@ ClientVersions::ClientVersions() { client_version_map_[12] = String("0.3.0.dev3"); client_version_map_[13] = String("0.3.0.dev4"); client_version_map_[14] = String("0.3.0.dev5"); + client_version_map_[15] = String("0.3.0.dev6"); } Pair ClientVersions::GetVersionByIndex(i64 version_index) { diff --git a/src/network/infinity_thrift_service.cppm b/src/network/infinity_thrift_service.cppm index 65ea1e9203..ab85e07084 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_{14}; // 0.3.0.dev5 + static constexpr i64 current_version_index_{15}; // 0.3.0.dev6 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;