From 89b3842caa385a2b9e5cb2678628aefaebb947bf Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Mon, 15 Jul 2024 18:14:28 +0800 Subject: [PATCH] Fix update version info to 0.2.1 (#1477) ### 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] Documentation Update Signed-off-by: Jin Hai --- CMakeLists.txt | 2 +- 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 +- pyproject.toml | 2 +- python/infinity/remote_thrift/client.py | 2 +- src/network/infinity_thrift_service.cpp | 2 +- src/network/infinity_thrift_service.cppm | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a08a4d82d1..a2970ed8e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,7 +214,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.2.1.dev6") + set(CPACK_PACKAGE_VERSION "0.2.1") endif() set(CPACK_PACKAGE_RELEASE 1) set(CPACK_PACKAGE_CONTACT "Zhichang Yu ") diff --git a/README.md b/README.md index c3f5d25700..15b8500a17 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,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.2.1.dev6 + pip install infinity-sdk==0.2.1 ``` ```python diff --git a/benchmark/remote_infinity/remote_query_benchmark.cpp b/benchmark/remote_infinity/remote_query_benchmark.cpp index 2e58125539..d2e28c55f5 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(10); // 0.2.1.dev6 + request.__set_client_version(10); // 0.2.1 client->Connect(response, request); session_id = response.session_id; } diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index 23a26a180b..476745f2a5 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(10); // 0.2.1.dev6 + request.__set_client_version(10); // 0.2.1 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 183f07d00a..87561c1d08 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.2.1.dev6 +pip install infinity-sdk==0.2.1 ``` ### 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.2.1.dev6 +pip install infinity-sdk==0.2.1 ``` ### 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.2.1.dev6-x86_64.rpm +sudo rpm -i infinity-0.2.1-x86_64.rpm sudo systemctl start infinity ``` ```bash -sudo dpkg -i infinity-0.2.1.dev6-x86_64.deb +sudo dpkg -i infinity-0.2.1-x86_64.deb sudo systemctl start infinity ``` @@ -157,7 +157,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.2.1.dev6 +pip install infinity-sdk==0.2.1 ``` ### Connect to Infinity Server diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index ea0826a57a..bdbb871f65 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.2.1.dev6 + pip install infinity-sdk==0.2.1 ``` 2. Use Infinity to conduct a KNN search: ```python diff --git a/pyproject.toml b/pyproject.toml index d572f10893..455a5374c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build" [project] name = "infinity_sdk" -version = "0.2.1.dev6" +version = "0.2.1" requires-python = ">=3.10" dependencies = [ "sqlglot~=11.7.0", diff --git a/python/infinity/remote_thrift/client.py b/python/infinity/remote_thrift/client.py index b3c7e92a23..528b2dbfd8 100644 --- a/python/infinity/remote_thrift/client.py +++ b/python/infinity/remote_thrift/client.py @@ -56,7 +56,7 @@ def reconnect(self): # version: 0.2.0.dev8, client_version: 7 # version: 0.2.0, client_version: 8 # version: 0.2.1.dev5, client_version: 9 - # version: 0.2.1.dev6, client_version: 10 + # version: 0.2.1, client_version: 10 res = self.client.Connect(ConnectRequest(client_version=10)) if res.error_code != 0: raise InfinityException(res.error_code, res.error_msg) diff --git a/src/network/infinity_thrift_service.cpp b/src/network/infinity_thrift_service.cpp index 22215d9d67..841f8c8288 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -75,7 +75,7 @@ ClientVersions::ClientVersions() { client_version_map_[7] = String("0.2.0.dev8"); client_version_map_[8] = String("0.2.0"); client_version_map_[9] = String("0.2.1.dev5"); - client_version_map_[10] = String("0.2.1.dev6"); + client_version_map_[10] = String("0.2.1"); } Pair ClientVersions::GetVersionByIndex(i64 version_index) { diff --git a/src/network/infinity_thrift_service.cppm b/src/network/infinity_thrift_service.cppm index 1728f40f61..6ba79c0973 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_{10}; // 0.2.1.dev6 + static constexpr i64 current_version_index_{10}; // 0.2.1 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;