diff --git a/README.md b/README.md index c78e49a2f6..8ad93c72ea 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.0.dev5 + pip install infinity-embedded-sdk==0.5.0.dev6 ``` 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 e07c4bdc22..14ad9fcf44 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(26); // 0.5.0.dev5 + request.__set_client_version(27); // 0.5.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 d229b2af82..f5e5fdefd7 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(26); // 0.5.0.dev5 + request.__set_client_version(27); // 0.5.0.dev6 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 a22ba62893..3a4df25aa5 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.0.dev5 + pip install infinity-sdk==0.5.0.dev6 ``` 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.0.dev5 + pip install infinity-sdk==0.5.0.dev6 ``` 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.0.dev5 + pip install infinity-sdk==0.5.0.dev6 ``` 3. Run the functional tests: diff --git a/docs/getstarted/deploy_infinity_server.mdx b/docs/getstarted/deploy_infinity_server.mdx index 40a079a90c..9d5ee6962a 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.0.dev5 +pip install infinity-embedded-sdk==0.5.0.dev6 ``` ### 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.0.dev5 +pip install infinity-sdk==0.5.0.dev6 ``` ### 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.0.dev5-x86_64.rpm +sudo rpm -i infinity-0.5.0.dev6-x86_64.rpm ``` ```bash @@ -162,7 +162,7 @@ sudo systemctl start infinity ```bash -sudo dpkg -i infinity-0.5.0.dev5-x86_64.deb +sudo dpkg -i infinity-0.5.0.dev6-x86_64.deb ``` ```bash @@ -175,7 +175,7 @@ sudo systemctl start infinity ### Install Infinity client ``` -pip install infinity-sdk==0.5.0.dev5 +pip install infinity-sdk==0.5.0.dev6 ``` ### Run a vector search diff --git a/docs/getstarted/quickstart.md b/docs/getstarted/quickstart.md index 4a5ce0cca6..61a7235f99 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.0.dev5 + pip install infinity-embedded-sdk==0.5.0.dev6 ``` 2. Use Infinity to conduct a dense vector search: ```python diff --git a/pyproject.toml b/pyproject.toml index 723c9970dc..d75de1c4a1 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.0.dev5" +version = "0.5.0.dev6" 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 60c0d587b6..82800c6c73 100644 --- a/python/infinity_sdk/infinity/remote_thrift/client.py +++ b/python/infinity_sdk/infinity/remote_thrift/client.py @@ -97,7 +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 - res = self.client.Connect(ConnectRequest(client_version=26)) # 0.5.0.dev5 + # version: 0.5.0.dev6, client_version: 27 + res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 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 92f7574c5e..50386f3aaf 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.dev5" +version = "0.5.0.dev6" 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 88beb0d32c..6d50d15ce1 100644 --- a/src/network/infinity_thrift_service.cpp +++ b/src/network/infinity_thrift_service.cpp @@ -93,6 +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.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 bc60ccb68b..1c26e848b5 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_{26}; // 0.5.0.dev5 + static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 static std::mutex infinity_session_map_mutex_; static HashMap> infinity_session_map_; diff --git a/src/storage/invertedindex/memory_indexer.cppm b/src/storage/invertedindex/memory_indexer.cppm index 58c9c3ab2e..12f0a62096 100644 --- a/src/storage/invertedindex/memory_indexer.cppm +++ b/src/storage/invertedindex/memory_indexer.cppm @@ -183,6 +183,6 @@ private: UniquePtr buf_writer_; SegmentIndexEntry *segment_index_entry_{nullptr}; - SizeT mem_used_{0}; + Atomic mem_used_{0}; }; } // namespace infinity