From: ThomasVitale (@ThomasVitale) <noreply+ThomasVitale@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #461: Increase max vectors dimension limit for index
Date: Sun, 22 Sep 2024 06:06:27 +0000
Message-ID: <gh-pgvector-pgvector-461-c2365487002@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-461@github.com>
References: <gh-pgvector-pgvector-461@github.com>
In case it's useful to people, here's a temporary tip to use Ollama for embeddings paired with PGVector.
The multi-purpose models in the Ollama library (like `mistral` and `llama3.1`) seem to have been all configured with 4096 dimensionality, which cannot be changed as of now on the Ollama side, and therefore doesn't work with PGVector out of the box.
However, dedicated embedding models like `nomic-embed-text` (full list here: https://ollama.com/search?q=&c=embedding) are configured with different dimensionality. In many cases, it's lower than 2000, so they all can be used with PGVector.