pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: Tibiritabara (@Tibiritabara) <noreply+Tibiritabara@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #719: SELECT WHERE ORDER BY LIMIT no results
Date: Tue, 03 Dec 2024 13:26:39 +0000
Message-ID: <gh-pgvector-pgvector-719-c2514555461@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-719@github.com>
References: <gh-pgvector-pgvector-719@github.com>

Dear team, I am facing the same issues. We are currently having PG14 on AWS with PGVector 0.7.3. Our table has grown quite a lot recently, and lately, we see queries with no results when using an `ORDER BY`clause.

This is a sample query:

```sql
SELECT "vector_store"."id",
  (EMBEDDING <-> '[...]') AS DISTANCE
  FROM
    "vector_store"
  WHERE
    1 = 1
    AND (
      METADATA ->> 'field' = 'value'
      )
  ORDER BY DISTANCE
  LIMIT 20
```

As soon as I remove the `ORDER BY` I see results. Is there a way I can address this?. This column is using an HNSW index. Whenever I try a non-indexed distance operator, it works.

view thread (31+ messages)  latest in thread

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