Content Deep Dive

Faster Vector Search in Harper 5.3 with Native HNSW

Blog post from Harper

Post Details
Company
Date Published
Author
Kris Zyp
Word Count
2,739
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

Harper 5.3 introduces a native HNSW vector index that moves graph traversal from JavaScript into a Rust-based, memory-mapped persistent module, storing quantized vectors and neighbor links in fixed-size slots to reduce record lookups, object handling, and traversal overhead. In benchmarks using 128-dimensional SIFT image descriptors and cosine distance, Harper 5.3 achieved 3.7 times the throughput of Harper 5.2 at roughly 99% recall and 6.5 times at 99.95% recall on 20,000 vectors, while comparisons with PostgreSQL 17 and pgvector showed similar performance at that size and Harper advantages of about 1.6 to 2.3 times throughput on 200,000 vectors at comparable recall levels. The evaluation included full HTTP request paths, though the authors caution that results reflect one laptop, unfiltered warm top-10 searches, limited query samples, and a specific workload rather than a general database ranking. Harper’s native backend uses int8 quantization with exact reranking of candidates, supports incremental updates and concurrent reads and writes, and is selected automatically for eligible HNSW indexes, while existing indexes require rebuilding to use it. The underlying Apache-licensed @harperfast/hnsw Node.js module is also available independently, offering persistent cosine-similarity indexes with int8 or int16 storage, where standalone tests showed int16 can improve recall but uses more storage and may reduce concurrent throughput.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 9 1,979 416 136 +18%
RAG 1 874 224 84 +1%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.