Skip to content

Commit

Permalink
Update version to 0.4.0-dev2 (#1897)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
  • Loading branch information
JinHai-CN authored Sep 22, 2024
1 parent c44c8f4 commit a03a3e0
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/cpp/infinity_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down
6 changes: 3 additions & 3 deletions docs/getstarted/build_from_source.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions docs/getstarted/deploy_infinity_server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -151,7 +151,7 @@ sudo systemctl start infinity
<TabItem value="ubuntu">

```bash
sudo dpkg -i infinity-0.4.0.dev1-x86_64.deb
sudo dpkg -i infinity-0.4.0.dev2-x86_64.deb
```

```bash
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/getstarted/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/references/pysdk_api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion python/infinity_sdk/infinity/remote_thrift/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/infinity_sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/network/infinity_thrift_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const char *, Status> ClientVersions::GetVersionByIndex(i64 version_index) {
Expand Down
2 changes: 1 addition & 1 deletion src/network/infinity_thrift_service.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64, SharedPtr<Infinity>> infinity_session_map_;
Expand Down

0 comments on commit a03a3e0

Please sign in to comment.