pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: amelboc (@amelboc) <noreply+amelboc@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:25:00 +0000
Message-ID: <gh-pgvector-pgvector-749-c2733902099@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-749@github.com>
References: <gh-pgvector-pgvector-749@github.com>

I have an issue where I want to create sparsevecs in my postgres database but I get an issue when the index of the elements in my sparsevec are larger than the dimensions. Example: {1:1, 3:2, 5:3, 102:2}/100 the index 102 is out of bounds whilst {1:1, 3:2, 5:3, 99:2}/100 is fine. Why can the index not be larger than the dimension size when the amount of elements in the sparsevec are still restricted to dimensions size? If the case is that you can have up to 1000 non-zero elements and 16000 zero elements in a sparsevec, then the indexing problem makes little sense to me. 

view thread (6+ messages)  latest in thread

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