Show HN: A fast HNSW implementation in Rust
21–30 of 30 posts
Re: Show HN: A fast HNSW implementation in Rust
#22https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0...
You don't have a license on the code yet (weirdly Claude hallucinated MIT).
Notes on how I generated this in the comments on that Gist.
Re: Show HN: A fast HNSW implementation in Rust
#23https://github.com/instant-labs/instant-distance
There are Python bindings, too:
Re: Show HN: A fast HNSW implementation in Rust
#24Since this doesn't have documentation yet I piped the code through Claude 3 Opus and asked it to write some. https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0... You don't have a license on the code yet (weirdly Claude hallucinated MIT). Notes on how I generated this in the comments on that Gist.
Re: Show HN: A fast HNSW implementation in Rust
#25Since this doesn't have documentation yet I piped the code through Claude 3 Opus and asked it to write some. https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0... You don't have a license on the code yet (weirdly Claude hallucinated MIT). Notes on how I generated this in the comments on that Gist.
Thanks for the notes, I thought it would be a more detailed prompt :) Any reason why you choose Opus instead of other LLMs, was it because of the 200k context window?
Re: Show HN: A fast HNSW implementation in Rust
#26Re: Show HN: A fast HNSW implementation in Rust
#27Since this doesn't have documentation yet I piped the code through Claude 3 Opus and asked it to write some. https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0... You don't have a license on the code yet (weirdly Claude hallucinated MIT). Notes on how I generated this in the comments on that Gist.
Re: Show HN: A fast HNSW implementation in Rust
#28Since this doesn't have documentation yet I piped the code through Claude 3 Opus and asked it to write some. https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0... You don't have a license on the code yet (weirdly Claude hallucinated MIT). Notes on how I generated this in the comments on that Gist.
Re: Show HN: A fast HNSW implementation in Rust
#29Hello, I have a few questions: - how much time to insert 15 millions of vectors of 768 f32? - how much RAM needed for this operation? - if inserting another vector, how incremental is the insertion? Is it faster than reindexing the 15M + 1 vectors from scratch? - does the structure need to stay in RAM or can it be efficiently queried from a serialized représentation? - how fast is the search in the 15M vectors on ave…
Re: Show HN: A fast HNSW implementation in Rust
#30Since this doesn't have documentation yet I piped the code through Claude 3 Opus and asked it to write some. https://gist.github.com/simonw/9ff9a0ab8ab64e8aa8d160c4294c0... You don't have a license on the code yet (weirdly Claude hallucinated MIT). Notes on how I generated this in the comments on that Gist.
What was the total token count? The output is impressive (if accurate). I'm also curious if doing things like omitting function bodies would alter the output (obvious makes the process cheaper and would enable larger projects, but may lead to worse analyses).
I'm still on the free trial API plan, but at Opus price of $15 per million input tokens and $75 per million output tokens that comes to about 10.5 cents.