Skip to content

Commit f5fbb58

Browse files
authored
Update version to 0.6.0-dev2 and use lts-polars-cpu as the pandas module (#2459)
### What problem does this PR solve? - Update version info - To be compatible with old CPU use lts-polar-cpu ### Type of change - [x] Refactoring - [x] Python SDK impacted, Need to update PyPI Signed-off-by: Jin Hai <[email protected]>
1 parent d877238 commit f5fbb58

File tree

14 files changed

+24
-24
lines changed

14 files changed

+24
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Supports a wide range of data types including strings, numerics, vectors, and mo
6060
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:
6161

6262
```bash
63-
pip install infinity-embedded-sdk==0.6.0.dev1
63+
pip install infinity-embedded-sdk==0.6.0.dev2
6464
```
6565
Use Infinity to conduct a dense vector search:
6666
```python

benchmark/remote_infinity/remote_query_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct InfinityClient {
5151
transport->open();
5252
CommonResponse response;
5353
ConnectRequest request;
54-
request.__set_client_version(28); // 0.6.0.dev1
54+
request.__set_client_version(28); // 0.6.0.dev1 and 0.6.0.dev2
5555
client->Connect(response, request);
5656
session_id = response.session_id;
5757
}

client/cpp/infinity_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Client Client::Connect(const std::string &ip_address, uint16_t port) {
2525
transport->open();
2626
CommonResponse response;
2727
ConnectRequest request;
28-
request.__set_client_version(28); // 0.6.0.dev1
28+
request.__set_client_version(28); // 0.6.0.dev1 and 0.6.0.dev2
2929
client->Connect(response, request);
3030
return {socket, transport, protocol, std::move(client), response.session_id};
3131
}

docs/getstarted/build_from_source.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ cmake --build . -t test_main
264264

265265
2. Install Python sdk of infinity:
266266
```bash
267-
pip install infinity-sdk==0.6.0.dev1
267+
pip install infinity-sdk==0.6.0.dev2
268268
```
269269

270270
3. Run the functional tests:
@@ -286,7 +286,7 @@ cmake --build . -t test_main
286286

287287
2. Install Python sdk of infinity:
288288
```bash
289-
pip install infinity-sdk==0.6.0.dev1
289+
pip install infinity-sdk==0.6.0.dev2
290290
```
291291

292292
3. Run the functional tests:
@@ -309,7 +309,7 @@ cmake --build . -t test_main
309309

310310
2. Install Python sdk of infinity:
311311
```bash
312-
pip install infinity-sdk==0.6.0.dev1
312+
pip install infinity-sdk==0.6.0.dev2
313313
```
314314

315315
3. Run the functional tests:

docs/getstarted/deploy_infinity_server.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This approach allows you to call Infinity as a Python module. To deploy Infinity
3434
### Install Infinity as a module
3535

3636
```
37-
pip install infinity-embedded-sdk==0.6.0.dev1
37+
pip install infinity-embedded-sdk==0.6.0.dev2
3838
```
3939

4040
### Create an Infinity object
@@ -101,7 +101,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using
101101
### Install Infinity client
102102

103103
```
104-
pip install infinity-sdk==0.6.0.dev1
104+
pip install infinity-sdk==0.6.0.dev2
105105
```
106106

107107
### Run a vector search
@@ -151,7 +151,7 @@ This section provides instructions on deploying Infinity using binary package on
151151

152152
Fedora/RHEL/CentOS/OpenSUSE
153153
```bash
154-
sudo rpm -i infinity-0.6.0.dev1-x86_64.rpm
154+
sudo rpm -i infinity-0.6.0.dev2-x86_64.rpm
155155
```
156156

157157
```bash
@@ -162,7 +162,7 @@ sudo systemctl start infinity
162162
<TabItem value="ubuntu">
163163

164164
```bash
165-
sudo dpkg -i infinity-0.6.0.dev1-x86_64.deb
165+
sudo dpkg -i infinity-0.6.0.dev2-x86_64.deb
166166
```
167167

168168
```bash
@@ -175,7 +175,7 @@ sudo systemctl start infinity
175175
### Install Infinity client
176176

177177
```
178-
pip install infinity-sdk==0.6.0.dev1
178+
pip install infinity-sdk==0.6.0.dev2
179179
```
180180

181181
### Run a vector search

docs/getstarted/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you wish to embed Infinity into your Python application without the need for
2121

2222
1. Install the Infinity-embedded SDK:
2323
```bash
24-
pip install infinity-embedded-sdk==0.6.0.dev1
24+
pip install infinity-embedded-sdk==0.6.0.dev2
2525
```
2626
2. Use Infinity to conduct a dense vector search:
2727
```python

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it
66

77
```shell
8-
pip install infinity-sdk==0.6.0.dev1
8+
pip install infinity-sdk==0.6.0.dev2
99
```
1010

1111
To use Infinity locally as a Python module, install the Infinity Embedded SDK:
1212

1313
```shell
14-
pip install infinity-embedded-sdk==0.6.0.dev1
14+
pip install infinity-embedded-sdk==0.6.0.dev2
1515
```
1616

1717
Once the installation completes, run some simple examples:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build"
1111

1212
[project]
1313
name = "infinity_embedded_sdk"
14-
version = "0.6.0.dev1"
14+
version = "0.6.0.dev2"
1515
requires-python = ">=3.10"
1616
dependencies = [
1717
"sqlglot~=11.7.0",
@@ -22,7 +22,7 @@ dependencies = [
2222
"pandas~=2.2.0",
2323
"numpy~=1.26.0",
2424
"pyarrow~=17.0.0",
25-
"polars~=1.9.0",
25+
"polars-lts-cpu~=1.9.0",
2626
"openpyxl~=3.1.0",
2727
"requests~=2.32.0"
2828
]

python/infinity_sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Infinity supports two working modes, embedded mode and client-server mode. The f
6363

6464
2. Install the `infinity-sdk` package:
6565
```bash
66-
pip install infinity-sdk==0.6.0.dev1
66+
pip install infinity-sdk==0.6.0.dev2
6767
```
6868

6969
3. Use Infinity to conduct a dense vector search:

python/infinity_sdk/infinity/remote_thrift/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def _reconnect(self):
9898
# version: 0.5.0.dev3, client_version: 25
9999
# version: 0.5.0.dev4 and 0.5.0.dev5, client_version: 26
100100
# version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2, client_version: 27
101-
# version: 0.6.0.dev1, client_version: 28
102-
res = self.client.Connect(ConnectRequest(client_version=28)) # 0.6.0.dev1
101+
# version: 0.6.0.dev1 and 0.6.0.dev2, client_version: 28
102+
res = self.client.Connect(ConnectRequest(client_version=28)) # 0.6.0.dev1 and 0.6.0.dev2
103103
if res.error_code != 0:
104104
raise InfinityException(res.error_code, res.error_msg)
105105
self.session_id = res.session_id

python/infinity_sdk/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "infinity-sdk"
3-
version = "0.6.0.dev1"
3+
version = "0.6.0.dev2"
44
requires-python = ">=3.10"
55
dependencies = [
66
"sqlglot~=11.7.0",
@@ -11,7 +11,7 @@ dependencies = [
1111
"pandas~=2.2.0",
1212
"numpy~=1.26.0",
1313
"pyarrow~=17.0.0",
14-
"polars~=1.9.0",
14+
"polars-lts-cpu~=1.9.0",
1515
"openpyxl~=3.1.0",
1616
"requests~=2.32.0",
1717
"readerwriterlock~=1.0.9"

python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ pytest~=8.3.0
66
pandas~=2.2.0
77
numpy~=1.26.0
88
pyarrow~=17.0.0
9-
polars~=1.9.0
9+
polars-lts-cpu~=1.9.0
1010
openpyxl~=3.1.0
1111
requests~=2.32.0

src/network/infinity_thrift_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ClientVersions::ClientVersions() {
9494
client_version_map_[25] = String("0.5.0.dev3");
9595
client_version_map_[26] = String("0.5.0.dev5");
9696
client_version_map_[27] = String("0.5.2");
97-
client_version_map_[28] = String("0.6.0.dev1");
97+
client_version_map_[28] = String("0.6.0.dev2");
9898
}
9999

100100
Pair<const char *, Status> ClientVersions::GetVersionByIndex(i64 version_index) {

src/network/infinity_thrift_service.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct ClientVersions {
6060
export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf {
6161
private:
6262
static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]";
63-
static constexpr i64 current_version_index_{28}; // 0.6.0.dev1
63+
static constexpr i64 current_version_index_{28}; // 0.6.0.dev1 and 0.6.0.dev2
6464

6565
static std::mutex infinity_session_map_mutex_;
6666
static HashMap<u64, SharedPtr<Infinity>> infinity_session_map_;

0 commit comments

Comments
 (0)