pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #442: OpenAI's text-embedding-3-large model not compatible with pgvector 5.1
Date: Wed, 31 Jan 2024 17:12:56 +0000
Message-ID: <gh-pgvector-pgvector-442-c1919548243@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-442@github.com>
References: <gh-pgvector-pgvector-442@github.com>

@wmwsagara The 2K indexing limit is not being ignored. There have been numerous discussions about this topic both within the pgvector project and at events. At PGCon 2023, I gave a lightning talk discussing this exact point, as well as various strategies we can use in PostgreSQL to work beyond the limit. Also as mentioned, there are several open branches that can help address it.

That said, @ankane did provide an alternative approach to using the `text-embedding-3-large`. Additionally, you could considering doing some prefiltering of the data with PCA or other information to store it. You can also store it without an index and perform an exact nearest neighbor search. It all depends on your application, which I'm not sure you've provided information about.

The stats you provided showed a 2-4% gain in using the larger dimensionality. I'm many years removed from my machine learning studies, so that could be quite a significant gain. With my database hat on, I read it as having to store 3x the amount of information for a small gain, whereas I could store less and increasing some of my indexing tuning parameters to get better relevancy.

pgvector is open source, and ideas for how to support indexing larger vectors while still utilizing PostgreSQL's storage system (i.e. maintaining ACID compliance) are welcome.

view thread (14+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-442-c1919548243@github.com>
Permalink:  ../gh-pgvector-pgvector-442-c1919548243@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