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 (`<=>`).