From: qinhaoranaaa (@qinhaoranaaa) <noreply+qinhaoranaaa@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #881: In the same scenario, if the topk value is greater than 40, only 40 records can be returned.
Date: Fri, 01 Aug 2025 07:52:49 +0000
Message-ID: <gh-pgvector-pgvector-881@github.com> (raw)
The commands are exactly the same except for topk. I added the assertion that PQntuples(queryRes) >= g_topk。
command:
<img width="1251" height="719" alt="Image" src="https://github.com/user-attachments/assets/7524e5e3-6691-4806-aba6-af06c982eb54"; />
result:
<img width="831" height="493" alt="Image" src="https://github.com/user-attachments/assets/65eaa015-42fd-4992-8ad3-674a43fc01ed"; />