Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: 20x faster pgvector alternative written in Rust (github.com/tensorchord)
23 points by gaocegege on Aug 7, 2023 | hide | past | favorite | 3 comments



This sounds great and exciting!

Since it was explicitly developed as a pgvector replacement, i feel it would have been useful to have a more in deph comparison though..

- what does it do specifically to achieve the speedup, other than rust? Does it use a better similarity search?

- what are potential drawbacks, other that it’s still in development? Missing features? Things that it does differently?


- We used a different index method called HNSW, which is more widely used in vector search area and also faster than ivfflat used by pgvector.

- There are some drawbacks with HNSW. It's designed for memory usage but not so suitable as a disk database index. Currently the storage of the HNSW index is managed outside postgres's buffer system, which is not so ideal. We're exploring more indexing method such as DiskANN to see whether we can integrate with postgres more. Fully integration with postgres can make things work like a charm





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: