An early look at HNSW performance with pgvector
1–10 of 18 posts
Re: An early look at HNSW performance with pgvector
#2HNSW will be merged in v0.5.0. I can't speak for Andrew (the creator) but it seems that this release is imminent[0], pending some benchmarking and minor improvements. This is a first look at the performance of pgvector’s HNSW implementation at a specific commit[1].
[0] https://github.com/pgvector/pgvector/commit/51d292c93dff82f6...
Re: An early look at HNSW performance with pgvector
#3The blogpost is very thorough, lots of measurements of different datasets, including great 1536-dimensional 1M rows dbpedia-openai dataset. Furthermore, a very strong point is that all parameters and method is described and transparent.
Re: An early look at HNSW performance with pgvector
#4Re: An early look at HNSW performance with pgvector
#5I like these measurements with ANN-benckmark! They allow to compare performance of different index implementations apples-to-apples i.e. at the same build parameters set rather than using some fixed settings (or, even worse, default settings that are different). The blogpost is very thorough, lots of measurements of different datasets, including great 1536-dimensional 1M rows dbpedia-openai dataset. Furthermore, a ve…
Re: An early look at HNSW performance with pgvector
#6This may be a dumb question but with OpenAI embeddings do we need to use cosine similarity or is the simple distance equivalent? I used cosine similarity before but not sure.
Re: An early look at HNSW performance with pgvector
#7Re: An early look at HNSW performance with pgvector
#8Re: An early look at HNSW performance with pgvector
#9I’m also curious if there is a way to not store everything in memory for pgvector. Is that possible?
Lastly, what is the parallelism story? Is it just using a thread pool under the hood? OpenMP?
Understanding if pgvector plans to support point insertions and deletions is also important in practice.