Quiver.Rag 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Quiver.Rag --version 0.4.0
                    
NuGet\Install-Package Quiver.Rag -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Quiver.Rag" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Quiver.Rag" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Quiver.Rag" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Quiver.Rag --version 0.4.0
                    
#r "nuget: Quiver.Rag, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Quiver.Rag@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Quiver.Rag&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Quiver.Rag&version=0.4.0
                    
Install as a Cake Tool

Quiver

日本語のREADMEは README_ja.md をご覧ください。

CI AOT publish smoke

Quiver is an embedded graph database engine for .NET with integrated vector and full-text search. It stores property graphs and role-aware n-ary Nexus relationships 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
  • Role-aware n-ary Nexus relationships with generated CRUD and traversal APIs
  • 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.4.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, Nexus relationships, traversal, pattern matching, vector search, RAG, hosting, observability, and migrations.

License

MIT License

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 175 8/3/2026 0.6.0 is deprecated because it is no longer maintained.
0.5.0 121 7/29/2026
0.4.0 122 7/28/2026
0.3.0 136 7/26/2026