ZVec.NET¶

Production .NET SDK for Alibaba ZVec — DI, typed ODM, async APIs, SafeHandles, full indexes/FTS, and mobile RIDs.
Beta —
1.0.0-beta.5+zvec.0.6.0. Native AOT compatible. APIs may still evolve. PackageIdZVec.NETon nuget.org (distinct from the unrelated NuGet packageZvec).
Why ZVec.NET?¶
| Feature | What it means |
|---|---|
| DI-first | AddZVec() / AddZVecCollection<T>() for ASP.NET Core, MAUI, Blazor Server |
| Typed ODM | POCOs via ZVec.NET.Mapping — schema From<T>(), expression filters |
| Sync + async | Lowest-latency sync; ValueTask async for hosts |
| Pin-based vectors | ReadOnlyMemory<float> on hot paths |
| Safe native lifecycle | SafeZvecHandle; factory shutdown disposes tracked collections |
| Cross-platform natives | Single NuGet with runtimes/{rid}/native/ |
| Full DB coverage | HNSW, Flat, IVF, RaBitQ, DiskANN, Vamana, Invert, FTS; hybrid search; RRF/Weighted rerankers |
Start here¶
- Install
- Quick start
- DI hosts or typed ODM
- Examples — in-repo hosts + external demos/POCs
- Index concepts → Theory
Docs vs upstream¶
| Content | Where |
|---|---|
| .NET SDK usage, DI, RIDs, binding gaps | This site |
| Runnable host demos | Examples (samples/ in this repo) |
| Advanced demos / POCs | ZVec.Net-DemosAndPOCs |
| Vector DB product docs, ANN theory, benchmarks | zvec.org |
| AI Integration (embeddings, MCP, model rerankers) | Out of scope for ZVec.NET |
Links¶
- NuGet: ZVec.NET
- GitHub repository
- In-repo samples
- Demos & POCs
- CHANGELOG
- Agent map:
llms.txt(published at site root)