From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #663: Issue with HNSW Index Utilization for Cosine Similarity Searches Using <=> Operator
Date: Wed, 28 Aug 2024 07:40:52 +0000
Message-ID: <gh-pgvector-pgvector-663-c2314560961@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-663@github.com>
References: <gh-pgvector-pgvector-663@github.com>
Hi @RakshitKhajuria, it sounds like you've indexed the L2 distance but not the cosine distance. You'll need to create an index for each distance function you want to use ([docs](https://github.com/pgvector/pgvector?tab=readme-ov-file#hnsw)).