I have described how Pinecone’s search and recommendation systems handle agentic workloads, sparse text search, sustained throughput, and high-QPS costs.
I noted that a current e-commerce workload was running 5.7k QPS on 1.4B vectors with filtering at ~26ms P50 latency.
I reacted to that e-commerce workload by saying, “That’s insane.”
I wrote the first C/C++ implementation of Hamming similarity approximation for v0 Pinecone in 2019.
A couple of years later, we replaced it with Rust; the Rust compiler optimized the SIMD instructions better than I did.
We still use Hamming distance scans in places, and we thought it could not get any faster; we were wrong.
We revisited the code to explicitly invoke AVX-512 intrinsics with loop unrolling, and the scans are now ~30% faster.
For 512-bit scans, the previous timing was 2.02 ns and the unrolled AVX512 timing was 1.49 ns, a 1.35× throughput improvement.
For 1024-bit scans, the previous timing was 3.04 ns and the unrolled AVX512 timing was 2.11 ns, a 1.44× throughput improvement.
For 2048-bit scans, the previous timing was 5.64 ns and the unrolled AVX512 timing was 4.48 ns, a 1.26× throughput improvement.
I reported that we made Hamming distance scans ~30% faster.
I started Pinecone 6+ years ago, when searching over ~10m vectors was considered a “large dataset.”
I said optimizing Pinecone for agents had taken several months.
I described agentic workloads as different from traditional search and recommendation.
I said agentic workloads involve millions of small namespaces with bursty, unpredictable query patterns.
I said these agentic workloads are both harder and easier to handle.
I said very small indexes no longer justify complex indexing or bookkeeping.
I said very small indexes can be warmed up in real time and scanned extremely quickly.
I said high-performance sparse indexing for text search now outperforms OpenSearch by a big margin.
I described provisioned capacity as coming soon.
I said Pinecone sustains 17k QPS on average 24/7.
I claimed that “This” is 10x cheaper (or more) for high QPS workloads.
I praised results like power-of-two-choices as exemplary computer science: “Results like power-of-two-choices are what CS should be all about!”
I value simple algorithms that engineers can ship and still sleep at night.
I value algorithms that are mathematically justified and broadly applicable, sometimes with beautiful proofs.
I value “Solving an actual real world problem,” rather than improving sqrt-log to log-log while adding 100 to the constant.
I credited Avi Mizrahi with reducing latency and variance in our load balancing.
I said, “thank you Michael Mitzenmacher for producing this gem!”
Related: vector indexing and architecture, vector quantization performance, vector search claims and limits