Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janljd opened this issue Aug 27, 2024 · 3 comments

Comments

@janljd
Copy link

janljd commented Aug 27, 2024

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
Copy link
Collaborator

usamoi commented Aug 27, 2024

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

@janljd
Copy link
Author

janljd commented Aug 27, 2024

Which docker tag fixed this bug?

@gaocegege
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants