From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #749: Enhancement: Increase 1,000 non-zero elements limit to 1,200 for sparsevec when creating HNSW index
Date: Tue, 18 Mar 2025 16:53:31 +0000
Message-ID: <gh-pgvector-pgvector-749-c2734012316@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-749@github.com>
References: <gh-pgvector-pgvector-749@github.com>
@amelboc It sounds like you're trying to create an invalid vector. If there's a value at index 102, the vector can't have less than 102 dimensions.
For instance, `{3:99}/3` represents the vector `[0,0,99]`. There are only 3 dimensions to set, so `{4:99}/3` is not valid. Please use other resources for additional help with this.