tensorchord / pgvecto.rs

Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres. Revolutionize Vector Search, not Database.
https://docs.pgvecto.rs/getting-started/overview.html
Apache License 2.0
1.66k stars 62 forks source link

bug: No such file or directory home/runner/work/pgvecto.rs/pgvecto.rs/crates/quantization/src/scalar/mod.rs #573

Open janljd opened 2 weeks ago

janljd commented 2 weeks ago

Environment

docker

image tensorchord/pgvecto-rs:pg16-v0.3.0

image tensorchord/pgvecto-rs: pg16-v0.2.1

Step

  1. create table with embedding vector(3072)

  2. create index with [indexing.hnsw.quantization.scalar]

    CREATE TABLE dbpedia_3072_scalar (
               id bigserial primary key, 
               title text,
               content text,
               embedding vector(3072)
               );
    
    CREATE INDEX hnsw_cosine_index_dbpedia_3072_scalar ON dbpedia_3072_scalar USING vectors (embedding vector_cos_ops) WITH (options='[indexing.hnsw]
    m = 16
    ef_construction = 100
    [indexing.hnsw.quantization.scalar]
    ');
  3. insert data

  4. restart docker

Restart Log

2024-08-27 03:51:29.688 [31] LOG:  Find directory "pg_vectors/indexes/0000000000000000000000000000000066cd4140d47c4027000000050001c7e8/segments/941d58fc-d25b-40e4-a3bb-987221c83617".
2024-08-27 03:51:29.746 [31] LOG:  Panickied. Info: PanicInfo { payload: Any { .. }, message: Some(called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }), location: Location { file: "/home/runner/work/pgvecto.rs/pgvecto.rs/crates/quantization/src/scalar/mod.rs", line: 79, col: 64 }, can_unwind: true, force_no_backtrace: false }. Backtrace: disabled backtrace.
2024-08-27 03:51:29.895 UTC [31] ERROR:  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
2024-08-27 03:51:29.945 UTC [1] LOG:  background worker "vectors" (PID 31) exited with exit code 1

postgresql-2024-08-27_035129.log

usamoi commented 2 weeks ago

It's a bug in v0.3.0, and fixed in main.

janljd commented 2 weeks ago

Which docker tag fixed this bug?

gaocegege commented 1 week ago

We will have a new release soon, which will include the fix.