pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #675: Question Setting ef_search to different values does not affect number of results retrieved (Django 4.2 + PGVector + HNSW index)
Date: Mon, 16 Sep 2024 15:38:18 +0000
Message-ID: <gh-pgvector-pgvector-675-c2353266607@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-675@github.com>
References: <gh-pgvector-pgvector-675@github.com>

@rmincling With the aforementioned disclaimer that I'm very rusty with Django, you can introspect the query plain with [`Queryset.explain()`](https://docs.djangoproject.com/en/5.1/topics/db/optimization/#use-explain).

That said, if your dataset is only 3,000 records, you're better off not using the index and simply doing a table scan, as timing wise that would be roughly comparable to using the index (the index scan may be a bit faster) and you'll achieve 100% recall. If the intention is for this workload to grow, I'd suggest testing with a larger set of vectors.

view thread (12+ messages)  latest in thread

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