Skip to content

Commit

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

Prepare to release 0.3.0

### Type of change

- [x] Documentation Update

---------

Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN authored Sep 3, 2024
1 parent 6ac7281 commit bcfce76
Show file tree
Hide file tree
Showing 17 changed files with 259 additions and 190 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.dev8
pip install infinity-sdk==0.3.0
```

```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(17); // 0.3.0.dev8
request.__set_client_version(17); // 0.3.0
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(17); // 0.3.0.dev8
request.__set_client_version(17); // 0.3.0
client->Connect(response, request);
return {socket, transport, protocol, std::move(client), response.session_id};
}
Expand Down
2 changes: 1 addition & 1 deletion conf/infinity_conf.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ log_file_rotate_count = 10
log_level = "info"

[storage]
persistence_dir = "/var/infinity/persistence"
#persistence_dir = "/var/infinity/persistence"
data_dir = "/var/infinity/data"
# periodically activates garbage collection:
# 0 means real-time,
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.dev8
pip install infinity-sdk==0.3.0
```

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

### 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.dev8-x86_64.rpm
sudo rpm -i infinity-0.3.0-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.dev8-x86_64.deb
sudo dpkg -i infinity-0.3.0-x86_64.deb
```

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

```
pip install infinity-sdk==0.3.0.dev8
pip install infinity-sdk==0.3.0
```

### 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.dev8
pip install infinity-sdk==0.3.0
```
2. Use Infinity to conduct a KNN search:
```python
Expand Down
4 changes: 2 additions & 2 deletions python/infinity/remote_thrift/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def reconnect(self):
# version: 0.3.0.dev5, client_version: 14
# version: 0.3.0.dev6, client_version: 15
# version: 0.3.0.dev7, client_version: 16
# version: 0.3.0.dev8, client_version: 17
res = self.client.Connect(ConnectRequest(client_version=17)) # 0.3.0.dev8
# version: 0.3.0.dev8 and 0.3.0, client_version: 17
res = self.client.Connect(ConnectRequest(client_version=17)) # 0.3.0
if res.error_code != 0:
raise InfinityException(res.error_code, res.error_msg)
self.session_id = res.session_id
Expand Down
9 changes: 7 additions & 2 deletions python/test_pysdk/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ def test_basic(self, check_data ,suffix):

res = table_obj.create_index("my_index",
index.IndexInfo("c1",
index.IndexType.IVFFlat,
{"centroids_count": "128", "metric": "l2"}),
index.IndexType.Hnsw,
{
"m": "16",
"ef_construction": "200",
"metric": "l2",
"encode": "lvq"
}),
ConflictType.Error)
assert res.error_code == ErrorCode.OK

Expand Down
Loading

0 comments on commit bcfce76

Please sign in to comment.