Quiver.Hosting
0.3.0
See the version list below for details.
dotnet add package Quiver.Hosting --version 0.3.0
NuGet\Install-Package Quiver.Hosting -Version 0.3.0
<PackageReference Include="Quiver.Hosting" Version="0.3.0" />
<PackageVersion Include="Quiver.Hosting" Version="0.3.0" />
<PackageReference Include="Quiver.Hosting" />
paket add Quiver.Hosting --version 0.3.0
#r "nuget: Quiver.Hosting, 0.3.0"
#:package Quiver.Hosting@0.3.0
#addin nuget:?package=Quiver.Hosting&version=0.3.0
#tool nuget:?package=Quiver.Hosting&version=0.3.0
Quiver
日本語のREADMEは README_ja.md をご覧ください。
Quiver is an embedded graph database engine for .NET with integrated vector and full-text search. It stores property graphs in a single file and provides type-safe CRUD through a source generator, fluent graph traversal, transactional persistence, KNN search, and BM25 search.
The core engine is implemented in pure C#, has no third-party package or unmanaged dependency, and supports NativeAOT.
Features
- Embedded, in-process operation with no server process
- Single-file property graph storage
- Type-safe APIs generated from
[Vertex],[Edge], and[Property]models - Fluent graph traversal and declarative pattern matching
- Single Writer with concurrent Snapshot Readers
- Redo-only WAL recovery and durable commits
- B+Tree scalar indexes
- KNN vector search with immutable HNSW segments
- BM25 full-text search with immutable index segments
- Hybrid retrieval for local RAG backends
Quick start
Define a typed graph model.
using Quiver.Api;
[Vertex]
public partial class Person
{
[Indexed]
[Property]
public string Name { get; set; } = "";
[Property]
public int Age { get; set; }
}
[Edge<Person, Person>]
public partial class Knows
{
[Property]
public string Since { get; set; } = "";
}
Query it through a snapshot-bound read transaction.
using var tx = db.BeginReadTransaction();
var known = tx.Query.Vertices<Person>()
.Has(p => p.Name, "Alice")
.Knows()
.Has(p => p.Age, P.Lt(30L))
.ToList();
The Quiver package includes the model attributes and source generator.
Projects with ImplicitUsings enabled receive the Quiver and Quiver.Api namespaces automatically.
The public version is currently 0.3.0 and remains pre-1.0.
Local RAG
Quiver.Rag provides Document and Chunk ingestion, chunking, re-ingestion, metadata filtering, vector and BM25 fusion, and graph expansion for surrounding context and parent documents.
Embedding generation stays in the calling application and is injected through IChunkEmbedder.
See the RAG sample and the local RAG cookbook.
Reference performance
| Operation | Measured result |
|---|---|
| Vertex insert, amortized in one transaction | ~3.5–4 µs/op |
| Vertex insert with properties | ~6 µs/op |
| Edge insert | ~7 µs/op |
| Durable single-operation commit | ~1.0 ms/commit |
| One-hop scan, degree 100, adjacency segment | ~0.35 µs |
| One-hop fluent query, degree 100 | ~4.2 µs/query |
| BulkLoader, 100,000 edges | ~11.8× regular batched transactions |
| HNSW true recall@10, N=10,000, dim=384 | 0.950 |
Results were measured in process on an AMD Ryzen 7 5700X with .NET 10. They are reference values rather than cross-machine guarantees. See the benchmark summary for details.
Limitations
| Constraint | Behavior |
|---|---|
| Single writer | One write transaction runs at a time; readers continue on independent snapshots |
| In-process only | One process opens a database file exclusively; no network protocol is included |
| No automatic physical format migration | Databases with an incompatible format must be rebuilt from source data |
| Derived vector rebuild | Exact scan is used while immutable HNSW state is unavailable or being rebuilt |
See the known limits for the complete contract.
Documentation
| Document | Contents |
|---|---|
| Getting Started | Installation and first database |
| Concepts | Transactions, traversal, matching, indexes, and search |
| Tutorials | Task-oriented examples |
| Cookbook | Common graph and RAG recipes |
| Operations | Backup, recovery, and performance tuning |
| Architecture | System structure and data flow |
| As-built specification | Current storage and execution contracts |
Samples
Samples are available under samples/, including CRUD, typed models, traversal, pattern matching, vector search, RAG, hosting, observability, and migrations.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.7)
- Quiver (>= 0.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.