From: clemensvonmuu (@clemensvonmuu) <noreply+clemensvonmuu@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #762: Negative values for the square prevent vector calculations in pgvector/postgress
Date: Tue, 21 Jan 2025 12:17:27 +0000
Message-ID: <gh-pgvector-pgvector-762@github.com> (raw)
I have the following problem with pgvector and postgress: I want to check if a vector is normalized. The calculation fails because the squares calculated for it are negative and no root can be calculated from negative numbers. To check this, I now have the squares calculated without a root. Result: the squares are negative.
Postgress and PGVectors are removed and installed from scratch. Vector is created over postgress shell so that all effects from other software can be excluded.
I would be grateful for any advice!
As this problem is happening directly within postgress/ pgvector without additionalsoftware parts I don't know which system information might be relevant. Here the most import ones: System:
- mac Mini, M1, macOS Sonoma 14.6.1.
- PostgreSQL 14.15 (Homebrew) on aarch64-apple-darwin23.6.0, compiled by Apple clang version 16.0.0 (clang-1600.0.26.4), 64-bit
- (1 row)
- pgvector: stable 0.8.0 (bottled)
<img width="648" alt="Image" src="https://github.com/user-attachments/assets/7a2f3b98-8fba-41b9-ba86-c5cfe922ed7b"; />