Skip to content

Commit 570654f

Browse files
committed
fix: fix detect avx512fp16
Signed-off-by: usamoi <[email protected]>
1 parent a2ada6d commit 570654f

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ pgvecto.rs is a Postgres extension that provides vector similarity search functi
2121

2222
## Comparison with pgvector
2323

24-
| | pgvecto.rs | pgvector |
25-
| ------------------------------------------- | ------------------------------------------------------ | ------------------------ |
26-
| Transaction support || ⚠️ |
27-
| Sufficient Result with Delete/Update/Filter || ⚠️ |
28-
| Vector Dimension Limit | 65535 | 2000 |
29-
| Prefilter on HNSW |||
30-
| Parallel HNSW Index build | ⚡️ Linearly faster with more cores | 🐌 Only single core used |
24+
| | pgvecto.rs | pgvector |
25+
| ------------------------------------------- | ------------------------------------------------------ | ----------------------- |
26+
| Transaction support | | ⚠️ |
27+
| Sufficient Result with Delete/Update/Filter | | ⚠️ |
28+
| Vector Dimension Limit | 65535 | 2000 |
29+
| Prefilter on HNSW | ||
30+
| Parallel HNSW Index build | ⚡️ Linearly faster with more cores | 🐌 Only single core used |
3131
| Async Index build | Ready for queries anytime and do not block insertions. ||
3232
| Quantization | Scalar/Product Quantization ||
3333

@@ -45,7 +45,11 @@ More details at [./docs/comparison-pgvector.md](./docs/comparison-pgvector.md)
4545
For users, we recommend you to try pgvecto.rs using our pre-built docker image, by running
4646

4747
```sh
48-
docker run --name pgvecto-rs-demo -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d tensorchord/pgvecto-rs:pg16-latest
48+
docker run \
49+
--name pgvecto-rs-demo \
50+
-e POSTGRES_PASSWORD=mysecretpassword \
51+
-p 5432:5432 \
52+
-d tensorchord/pgvecto-rs:pg16-latest
4953
```
5054

5155
## Development with envd

crates/service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bincode.workspace = true
1616
half.workspace = true
1717
num-traits.workspace = true
1818
c = { path = "../c" }
19-
std_detect = { git = "https://github.com/usamoi/stdarch.git", rev = "067a6e889f0ca995a9fe4114061ced6f67acfb95" }
19+
std_detect = { git = "https://github.com/usamoi/stdarch.git", rev = "79bd33813921b0c5a8f008c5785c63ae59e6a899" }
2020
rand = "0.8.5"
2121
crc32fast = "1.3.2"
2222
crossbeam = "0.8.2"

docs/installation.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,28 @@ To acheive full performance, please mount the volume to pg data directory by add
1919

2020
You can configure PostgreSQL by the reference of the parent image in https://hub.docker.com/_/postgres/.
2121

22-
## Build from source
22+
## Install from source
2323

2424
Install Rust and base dependency.
2525

2626
```sh
27-
sudo apt install -y build-essential libpq-dev libssl-dev pkg-config gcc libreadline-dev flex bison libxml2-dev libxslt-dev libxml2-utils xsltproc zlib1g-dev ccache clang git
27+
sudo apt install -y \
28+
build-essential \
29+
libpq-dev \
30+
libssl-dev \
31+
pkg-config \
32+
gcc \
33+
libreadline-dev \
34+
flex \
35+
bison \
36+
libxml2-dev \
37+
libxslt-dev \
38+
libxml2-utils \
39+
xsltproc \
40+
zlib1g-dev \
41+
ccache \
42+
clang \
43+
git
2844
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2945
```
3046

@@ -63,7 +79,7 @@ cargo pgrx init --pg15=/usr/lib/postgresql/15/bin/pg_config
6379
Install pgvecto.rs.
6480

6581
```sh
66-
cargo pgrx install --release
82+
cargo pgrx install --sudo --release
6783
```
6884

6985
Configure your PostgreSQL by modifying the `shared_preload_libraries` to include `vectors.so`.

0 commit comments

Comments
 (0)