pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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

view thread (61+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-461-c2678003849@github.com>
Permalink:  ../gh-pgvector-pgvector-461-c2678003849@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox