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 #584: Can't get the query planner to use HNSW index
Date: Tue, 04 Jun 2024 23:32:45 +0000
Message-ID: <gh-pgvector-pgvector-584-c2148577136@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-584@github.com>
References: <gh-pgvector-pgvector-584@github.com>

Hi @danthedaniel, it looks like you indexed cosine distance but are querying by L2 distance. Either index with `vector_l2_ops` or query by cosine distance (`<=>`).

view thread (6+ messages)  latest in thread

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