pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: masdeval (@masdeval) <noreply+masdeval@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #713: Could not make a vector index work even in the simplest scenario
Date: Mon, 11 Nov 2024 23:30:27 +0000
Message-ID: <gh-pgvector-pgvector-713-c2469284771@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-713@github.com>
References: <gh-pgvector-pgvector-713@github.com>

> Hi @masdeval, an index won't help this query (comparing all vectors in A with all vectors in B), which is why it's not being used.

I have seen queries like :

> WITH question_in_focus AS (
	SELECT * FROM question_embedding_duplicates
	WHERE _id = '001154ea-7c07-4914-b061-805fd99e64a3'
)
SELECT * FROM question_embedding_duplicates
WHERE question_embedding_duplicates.complete_description_embedding IS NOT NULL
ORDER BY complete_description_embedding <=> (SELECT complete_description_embedding FROM question_in_focus) ASC
LIMIT 10;

Why in this type of query the index allegedly  works and in mine don't?

view thread (6+ messages)  latest in thread

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