From: gs-vkrishnasrujan (@gs-vkrishnasrujan) <noreply+gs-vkrishnasrujan@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #691: halfvec queries taking more time than vector
Date: Mon, 07 Oct 2024 03:30:39 +0000
Message-ID: <gh-pgvector-pgvector-691@github.com> (raw)
Hello, Indexed ~2L embeddings using halfvec and vector using hnsw.
I wanted to see the performance and quality of the outputs.
The quality is same for both the indexes but the average query execution time using vector is 2.7 seconds while it is 3.9, 5.7 seconds for halfvec (checked twice)
Also, when I fired 100 queries to the DB parallely, it took 66 seconds to execute the pool using vector and 172 seconds using halfvec. This statistic is the mean derived from 100 runs.
I was hoping that halfvec would give better performance over vector.
My embedding dimension is 2000.
Clarification is much appreciated.