Skip to content

Commit ef11f63

Browse files
authored
Update version before release 0.4.0 (#2051)
### What problem does this PR solve? Update version before release 0.4.0 ### Type of change - [x] Documentation Update Signed-off-by: Jin Hai <[email protected]>
1 parent dc9848e commit ef11f63

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

README.md

+1-1
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.4.0.dev5
63+
pip install infinity-embedded-sdk==0.4.0
6464
```
6565
1. Use Infinity to conduct a dense vector search:
6666
```python

benchmark/remote_infinity/remote_query_benchmark.cpp

+1-1
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(22); // 0.4.0.dev5
54+
request.__set_client_version(22); // 0.4.0.dev5 and 0.4.0
5555
client->Connect(response, request);
5656
session_id = response.session_id;
5757
}

client/cpp/infinity_client.cpp

+1-1
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(22); // 0.4.0.dev5
28+
request.__set_client_version(22); // 0.4.0.dev5 and 0.4.0
2929
client->Connect(response, request);
3030
return {socket, transport, protocol, std::move(client), response.session_id};
3131
}

docs/getstarted/build_from_source.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ cmake --build . -t test_main
260260

261261
2. Install Python sdk of infinity:
262262
```bash
263-
pip install infinity-sdk==0.4.0.dev5
263+
pip install infinity-sdk==0.4.0
264264
```
265265

266266
3. Run the functional tests:
@@ -282,7 +282,7 @@ cmake --build . -t test_main
282282

283283
2. Install Python sdk of infinity:
284284
```bash
285-
pip install infinity-sdk==0.4.0.dev5
285+
pip install infinity-sdk==0.4.0
286286
```
287287

288288
3. Run the functional tests:
@@ -305,7 +305,7 @@ cmake --build . -t test_main
305305

306306
2. Install Python sdk of infinity:
307307
```bash
308-
pip install infinity-sdk==0.4.0.dev5
308+
pip install infinity-sdk==0.4.0
309309
```
310310

311311
3. Run the functional tests:

docs/getstarted/deploy_infinity_server.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This approach allows you to call Infinity as a Python module. To deploy Infinity
3030
### Install Infinity as a module
3131

3232
```
33-
pip install infinity-embedded-sdk==0.4.0.dev5
33+
pip install infinity-embedded-sdk==0.4.0
3434
```
3535

3636
### Create an Infinity object
@@ -98,7 +98,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using
9898
### Install Infinity client
9999

100100
```
101-
pip install infinity-sdk==0.4.0.dev5
101+
pip install infinity-sdk==0.4.0
102102
```
103103

104104
### Connect to Infinity Server and run a dense vector search
@@ -148,7 +148,7 @@ This section provides instructions on deploying Infinity using binary package on
148148

149149
Fedora/RHEL/CentOS/OpenSUSE
150150
```bash
151-
sudo rpm -i infinity-0.4.0.dev5-x86_64.rpm
151+
sudo rpm -i infinity-0.4.0-x86_64.rpm
152152
```
153153

154154
```bash
@@ -159,7 +159,7 @@ sudo systemctl start infinity
159159
<TabItem value="ubuntu">
160160

161161
```bash
162-
sudo dpkg -i infinity-0.4.0.dev5-x86_64.deb
162+
sudo dpkg -i infinity-0.4.0-x86_64.deb
163163
```
164164

165165
```bash
@@ -172,7 +172,7 @@ sudo systemctl start infinity
172172
### Install Infinity client
173173

174174
```
175-
pip install infinity-sdk==0.4.0.dev5
175+
pip install infinity-sdk==0.4.0
176176
```
177177

178178
### Connect to Infinity Server and run a dense vector search

docs/getstarted/quickstart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you wish to embed Infinity into your Python application without the need for
1919

2020
1. Install the Infinity-embedded SDK:
2121
```bash
22-
pip install infinity-embedded-sdk==0.4.0.dev5
22+
pip install infinity-embedded-sdk==0.4.0
2323
```
2424
2. Use Infinity to conduct a dense vector search:
2525
```python

pyproject.toml

+1-1
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.4.0.dev5"
14+
version = "0.4.0"
1515
requires-python = ">=3.10"
1616
dependencies = [
1717
"sqlglot~=11.7.0",

python/infinity_sdk/infinity/remote_thrift/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def reconnect(self):
6767
# version: 0.4.0.dev2, client_version: 19
6868
# version: 0.4.0.dev3, client_version: 20
6969
# version: 0.4.0.dev4, client_version: 21
70-
# version: 0.4.0.dev5, client_version: 22
71-
res = self.client.Connect(ConnectRequest(client_version=22)) # 0.4.0.dev5
70+
# version: 0.4.0.dev5 and 0.4.0, client_version: 22
71+
res = self.client.Connect(ConnectRequest(client_version=22)) # 0.4.0.dev5 and 0.4.0
7272
if res.error_code != 0:
7373
raise InfinityException(res.error_code, res.error_msg)
7474
self.session_id = res.session_id

python/infinity_sdk/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "infinity-sdk"
3-
version = "0.4.0.dev5"
3+
version = "0.4.0"
44
requires-python = ">=3.10"
55
dependencies = [
66
"sqlglot~=11.7.0",

src/network/infinity_thrift_service.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ClientVersions::ClientVersions() {
8787
client_version_map_[19] = String("0.4.0.dev2");
8888
client_version_map_[20] = String("0.4.0.dev3");
8989
client_version_map_[21] = String("0.4.0.dev4");
90-
client_version_map_[22] = String("0.4.0.dev5");
90+
client_version_map_[22] = String("0.4.0");
9191
}
9292

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

src/network/infinity_thrift_service.cppm

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct ClientVersions {
5959
export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf {
6060
private:
6161
static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]";
62-
static constexpr i64 current_version_index_{22}; // 0.4.0.dev5
62+
static constexpr i64 current_version_index_{22}; // 0.4.0.dev5 and 0.4.0
6363

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

0 commit comments

Comments
 (0)