diff --git a/README.md b/README.md index 66ad0699c6..513f1d51b7 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.4.0.dev1 + pip install infinity-sdk==0.4.0.dev2 ``` ```python diff --git a/client/cpp/infinity_client.cpp b/client/cpp/infinity_client.cpp index a5156416a6..eb26058dce 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(18); // 0.4.0.dev1 + request.__set_client_version(19); // 0.4.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 d6665e3d17..5254c3042f 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.4.0.dev1 + pip install infinity-sdk==0.4.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.4.0.dev1 + pip install infinity-sdk==0.4.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.4.0.dev1 + pip install infinity-sdk==0.4.0.dev2 ``` 3. Run the functional tests: diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index 2151298336..84640819c6 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.4.0.dev1 +pip install infinity-sdk==0.4.0.dev2 ``` ### 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.4.0.dev1 +pip install infinity-sdk==0.4.0.dev2 ``` ### 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.4.0.dev1-x86_64.rpm +sudo rpm -i infinity-0.4.0.dev2-x86_64.rpm ``` ```bash @@ -151,7 +151,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.4.0.dev1-x86_64.deb +sudo dpkg -i infinity-0.4.0.dev2-x86_64.deb ``` ```bash @@ -172,7 +172,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.4.0.dev1 +pip install infinity-sdk==0.4.0.dev2 ``` ### Connect to Infinity Server diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index 7b4689ca80..6a7d9db564 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.4.0.dev1 + pip install infinity-sdk==0.4.0.dev2 ``` 2. Use Infinity to conduct a KNN search: ```python diff --git a/docs/references/pysdk_api_reference.md b/docs/references/pysdk_api_reference.md index 74512d9cb8..edc4f266b3 100644 --- a/docs/references/pysdk_api_reference.md +++ b/docs/references/pysdk_api_reference.md @@ -37,7 +37,7 @@ When connecting to Infinity in client-server mode, ensure that the client versio | v0.2.0 | v0.2.0 | | v0.2.1 | v0.2.1 | | v0.3.0 | v0.3.0 | -| v0.4.0.dev1 | v0.4.0.dev1 | +| v0.4.0.dev2 | v0.4.0.dev2 | If the versions do not match, please update your client or server to ensure compatibility. diff --git a/pyproject.toml b/pyproject.toml index 8df6f7e42d..7f5abade54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build" [project] name = "infinity_embedded_sdk" -version = "0.4.0.dev1" +version = "0.4.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 10c74d9a27..421fff2c63 100644 --- a/python/infinity_sdk/infinity/remote_thrift/client.py +++ b/python/infinity_sdk/infinity/remote_thrift/client.py @@ -65,7 +65,8 @@ def reconnect(self): # version: 0.3.0.dev7, client_version: 16 # version: 0.3.0.dev8 and 0.3.0, client_version: 17 # version: 0.4.0.dev1, client_version: 18 - res = self.client.Connect(ConnectRequest(client_version=18)) # 0.4.0.dev1 + # version: 0.4.0.dev2, client_version: 19 + res = self.client.Connect(ConnectRequest(client_version=19)) # 0.4.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 7599aa9b57..d88bc9cec8 100644 --- a/python/infinity_sdk/pyproject.toml +++ b/python/infinity_sdk/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "infinity-sdk" -version = "0.4.0.dev1" +version = "0.4.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 1240b0dcc9..761b3de255 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -85,6 +85,7 @@ ClientVersions::ClientVersions() { client_version_map_[16] = String("0.3.0.dev7"); client_version_map_[17] = String("0.3.0"); client_version_map_[18] = String("0.4.0.dev1"); + client_version_map_[19] = String("0.4.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 102371f94e..b437957bea 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_{18}; // 0.4.0.dev1 + static constexpr i64 current_version_index_{19}; // 0.4.0.dev2 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_;