Skip to content

Commit

Permalink
Update version info to 0.3.0-dev7 (#1716)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Update version info to 0.3.0-dev7

### Type of change

- [x] Documentation Update
- [X] Python SDK impacted, Need to update PyPI

---------

Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN authored Aug 24, 2024
1 parent a7b355c commit e98b83e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 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.3.0.dev6
pip install infinity-sdk==0.3.0.dev7
```

```python
Expand Down
2 changes: 1 addition & 1 deletion benchmark/remote_infinity/remote_query_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct InfinityClient {
transport->open();
CommonResponse response;
ConnectRequest request;
request.__set_client_version(15); // 0.3.0.dev6
request.__set_client_version(16); // 0.3.0.dev7
client->Connect(response, request);
session_id = response.session_id;
}
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(15); // 0.3.0.dev6
request.__set_client_version(16); // 0.3.0.dev7
client->Connect(response, request);
return {socket, transport, protocol, std::move(client), response.session_id};
}
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.3.0.dev6
pip install infinity-sdk==0.3.0.dev7
```

### 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.3.0.dev6
pip install infinity-sdk==0.3.0.dev7
```

### 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.3.0.dev6-x86_64.rpm
sudo rpm -i infinity-0.3.0.dev7-x86_64.rpm
```

```bash
Expand All @@ -151,7 +151,7 @@ sudo systemctl start infinity
<TabItem value="ubuntu">

```bash
sudo dpkg -i infinity-0.3.0.dev6-x86_64.deb
sudo dpkg -i infinity-0.3.0.dev7-x86_64.deb
```

```bash
Expand All @@ -172,7 +172,7 @@ sudo systemctl start infinity
### Install Infinity client

```
pip install infinity-sdk==0.3.0.dev6
pip install infinity-sdk==0.3.0.dev7
```

### 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.3.0.dev6
pip install infinity-sdk==0.3.0.dev7
```
2. Use Infinity to conduct a KNN search:
```python
Expand Down
3 changes: 2 additions & 1 deletion python/infinity/remote_thrift/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def reconnect(self):
# version: 0.3.0.dev4, client_version: 13
# version: 0.3.0.dev5, client_version: 14
# version: 0.3.0.dev6, client_version: 15
res = self.client.Connect(ConnectRequest(client_version=15)) # 0.3.0.dev6
# version: 0.3.0.dev7, client_version: 16
res = self.client.Connect(ConnectRequest(client_version=16)) # 0.3.0.dev7
if res.error_code != 0:
raise InfinityException(res.error_code, res.error_msg)
self.session_id = res.session_id
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 @@ -81,6 +81,7 @@ ClientVersions::ClientVersions() {
client_version_map_[13] = String("0.3.0.dev4");
client_version_map_[14] = String("0.3.0.dev5");
client_version_map_[15] = String("0.3.0.dev6");
client_version_map_[16] = String("0.3.0.dev7");
}

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_{15}; // 0.3.0.dev6
static constexpr i64 current_version_index_{16}; // 0.3.0.dev7

static std::mutex infinity_session_map_mutex_;
static HashMap<u64, SharedPtr<Infinity>> infinity_session_map_;
Expand Down

0 comments on commit e98b83e

Please sign in to comment.