pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Sat, 28 Sep 2024 02:25:11 +0000
Message-ID: <gh-pgvector-pgvector-678-c2380359173@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>

Some benchmarking results from the [`arxiv` dataset](https://github.com/qdrant/ann-filtering-benchmark-datasets) (2.1M rows, 384 dimensions, first 100 queries, default build parameters, 6GB shared buffers)

Branch | Time | Recall
--- | --- | ---
hnsw-filtering | 108 sec | 95.8 
hnsw_iterator* | 167 sec | 95.9
relaxed | 221 sec | 95.5 

It'd be great to see benchmarks from others as well.

---

\* with a patch to fix recall

```diff
inline patch 1: src/hnswutils.c (+1/-1 lines) download inline-1.patchdiff --git a/src/hnswutils.c b/src/hnswutils.c index d6ed0b56..6b25eae8 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -966,7 +966,7 @@ LoadCandidates(char *base, IndexScanDesc scan, int ef) /* Avoid any allocations if not adding */ eElement = NULL; - HnswLoadElementImpl(blkno, offno, &eDistance, &so->q, index, so->procinfo, so->collation, false, alwaysAdd ? NULL : &f->distance, &eElement); + HnswLoadElementImpl(blkno, offno, &eDistance, &so->q, index, so->procinfo, so->collation, false, NULL, &eElement); if (eElement == NULL) continue;
```

view thread (46+ messages)  latest in thread

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