High-performance embedded vector database for .NET 8.
VectorRAG.Net is an in-process vector database designed for Retrieval-Augmented Generation (RAG), semantic search, local AI assistants and low-latency applications.
Unlike external vector databases, VectorRAG.Net runs directly inside your application process.
No HTTP.
No Docker.
No external services.
No network latency.
- SIMD-optimized vector search
- LSH-based ANN indexing
- Hybrid Search (Vector + BM25)
- Automatic document chunking
- Metadata filtering
- Snapshot save/load
- Runtime metrics
- Fully embedded architecture
- .NET 8 native implementation
dotnet add package VectorRAG.Netvar lshConfig = new EmbeddingLshConfig(
Bands: 24,
BitsPerBand: 12,
MaxCandidates: 2048
);
var db = new VectorRAGDatabase(
dimension: 1536,
lshConfig: lshConfig
);await db.UpsertTextDocumentAsync(
externalId: "faq_001",
text: File.ReadAllText("faq.txt"),
metadata: new DocumentMetadata
{
Department = "Support"
},
embeddingModel: embeddingModel
);var queryVector =
await embeddingModel.GenerateEmbeddingAsync(
"How do I reset my password?"
);
var results = db.Search(
queryVector,
new SearchOptions
{
TopK = 5
}
);var results = db.Search(
queryVector,
new SearchOptions
{
TopK = 5,
UseHybrid = true,
TextQuery = queryText,
Alpha = 0.7f
}
);var results = db.Search(
queryVector,
new SearchOptions
{
TopK = 5,
Filter = md =>
md.Department == "Support"
}
);await db.SaveAsync("database.vdb");await db.LoadAsync("database.vdb");Store embeddings locally and retrieve context without external vector services.
Low-latency semantic search for documentation and support portals.
Run completely offline without Docker, cloud services or internet access.
Vector search on embedded devices, industrial controllers and local servers.
Suitable for environments where external network access is prohibited.
Example benchmark:
| Operation | Average Time |
|---|---|
| Vector Search (TopK=5) | 15.15 μs |
| Hybrid Search | 116.73 μs |
Actual performance depends on embedding dimensions, dataset size and hardware.
VectorRAG.Net is commercial software.
The library may be used free of charge for:
- evaluation
- testing
- development
- research
- educational purposes
- proof-of-concept projects
No time limits.
No feature limitations.
Production use requires an active commercial subscription.
Current pricing:
- $1,000 USD per month per organization
For licensing questions:
Email: vipvodu@yandex.ru
Telegram: @vipvodu
NuGet: https://www.nuget.org/packages/VectorRAG.Net
GitHub: https://github.com/likeslines-maker/VectorRAG.Net
Benchmark results (local machine)
Environment: OS:Windows 11 (10.0.26200.7705) CPU:Intel Core i5-11400F (6C/12T) .NET:8.0.23 BenchmarkDotNet:0.15.8
Workload: Docs:10,000 Embedding dim:64 (synthetic deterministic embeddings for benchmarking) TopK:5 Hybrid mode:Vector + BM25 (BM25 uses hashed term IDs; query-term DF cutoff enabled) GroupByParentDocument:true
Results:
| Method | Docs | Mean | Allocated |
|---|---|---|---|
| Search_VectorOnly_Top5 | 10000 | 15.15 μs | 5.69 KB |
| Search_Hybrid_Top5 | 10000 | 116.73 μs | 14.85 KB |
Notes: Benchmarks were executed without an attached debugger (dotnet run -c Release). Hybrid performance depends heavily on term distribution (worst-case queries with extremely common terms are intentionally mitigated).