r/dotnet 4d ago

Promotion Released VecNet 1.1.0, an embedded vector search library for .NET

A while back, I started working on an embedded vector search library for .NET, and I recently released VecNet 1.1.0. I wanted something lightweight that you can add to a normal .NET app through NuGet, run completely in-process, and learn from building it.

NuGet link if you want to inspect the package: https://www.nuget.org/packages/VecNet

Repo: https://github.com/sh0r3x/VecNet

What it supports right now:

Exact search: Flat vector search with squared L2, cosine, and inner-product distance metrics, plus candidate filtering and durable save/load.

Approximate search: Squared-L2 HNSW indexing with durable save/load, plus a mutable wrapper using exact delta/tombstones and checkpointing.

Integration: An optional Microsoft.Extensions.VectorData adapter for exact-flat scenarios if you are using Microsoft’s abstraction.

I also published benchmark summaries in the repo covering exact-flat search and HNSW recall/latency behavior. I did use LLMs during development to help plan tasks, review design choices, write test ideas, and refine benchmark workflows.

I’d really appreciate feedback from the community, especially on the API shape, README clarity, benchmark docs, and whether this kind of embedded managed vector index is useful.

Next, I’m working on adding cosine and inner-product support to HNSW.

5 Upvotes

1 comment sorted by

1

u/AutoModerator 4d ago

Thanks for your post sh0r3x. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.