From: FaediMichele (@FaediMichele) <noreply+FaediMichele@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #461: Increase max vectors dimension limit for index
Date: Mon, 24 Feb 2025 10:30:47 +0000
Message-ID: <gh-pgvector-pgvector-461-c2678003849@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-461@github.com>
References: <gh-pgvector-pgvector-461@github.com>
I'm using a workaround for cosine distance.
You can split the vector in two half and simply order by the sum the dot product between the two vectors.
This works only if the vectors are normed (the full vector, not the half) before storing and querying.
Remember to change the index for dot product.
Don't know much about efficiency though