pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] PR #753: Fix sparsevec Documentation: Correct Max Non-Zero Elements Limit
2+ messages / 1 participants
[nested] [flat]

* [pgvector/pgvector] PR #753: Fix sparsevec Documentation: Correct Max Non-Zero Elements Limit
@ 2025-01-09 04:53  "fshabashev (@fshabashev)" <noreply+fshabashev@github.com>
  0 siblings, 0 replies; 2+ messages in thread

From: fshabashev (@fshabashev) @ 2025-01-09 04:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

This update corrects the maximum number of non-zero elements for the sparsevec data type in the README documentation for pgvector. Previously, the documentation incorrectly stated a limit of "up to 1,000 non-zero elements." The corrected version reflects the actual limit enforced by the code, which allows "up to 16,000 non-zero elements."

Definition of SPARSEVEC_MAX_NNZ:
[#define SPARSEVEC_MAX_NNZ 16000](https://github.com/pgvector/pgvector/blob/master/src/sparsevec.h#L5)

This change ensures consistency between the documentation and the implementation, providing accurate information to users.

inline patch 1: README.md (+1/-1 lines) download inline-1.patchdiff --git a/README.md b/README.md index 04e795343..b9f7a0355 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,7 @@ Supported types are: - `vector` - up to 2,000 dimensions - `halfvec` - up to 4,000 dimensions (added in 0.7.0) - `bit` - up to 64,000 dimensions (added in 0.7.0) -- `sparsevec` - up to 1,000 non-zero elements (added in 0.7.0) +- `sparsevec` - up to 16,000 non-zero elements (added in 0.7.0) ### Index Options
^ permalink raw [nested|flat] 2+ messages in thread

* Re: [pgvector/pgvector] PR #753: Fix sparsevec Documentation: Correct Max Non-Zero Elements Limit
@ 2025-01-09 04:55  "fshabashev (@fshabashev)" <noreply+fshabashev@github.com>
  0 siblings, 0 replies; 2+ messages in thread

From: fshabashev (@fshabashev) @ 2025-01-09 04:55 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@fshabashev closed this.

^ permalink  raw  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-01-09 04:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09 04:53 [pgvector/pgvector] PR #753: Fix sparsevec Documentation: Correct Max Non-Zero Elements Limit "fshabashev (@fshabashev)" <noreply+fshabashev@github.com>
2025-01-09 04:55 Re: [pgvector/pgvector] PR #753: Fix sparsevec Documentation: Correct Max Non-Zero Elements Limit "fshabashev (@fshabashev)" <noreply+fshabashev@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