Quiver 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Quiver --version 0.1.0
                    
NuGet\Install-Package Quiver -Version 0.1.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" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Quiver" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Quiver" />
                    
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 --version 0.1.0
                    
#r "nuget: Quiver, 0.1.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@0.1.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&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Quiver&version=0.1.0
                    
Install as a Cake Tool

Quiver

CI AOT publish smoke

Quiver は組み込みのグラフデータベース + ベクトル検索 + 全文検索の統合エンジンです。 ノードとリレーションシップをプロパティ付きで単一ファイルに永続化し、Source Generator による型安全な CRUD と Fluent な API によるグラフトラバーサルが実行可能です。 純 C# によるアンマネージド依存のない実装のため、NativeAOT に対応します。

クイックスタート

var g = tx.G(db.Schema);
var known = g.Nodes<Person>()
             .Has(p => p.Name, "Alice")
             .Knows()
             .Has(p => p.Age, P.Lt(30L))
             .ToList();
[Node]
public partial class Person // Source Generator を使う場合 partial 指定が必須です。
{
    [Indexed]
    [Property]
    public string Name { get; set; } = "";

    [Property]
    public int Age { get; set; }
}

[Relationship<Person, Person>]
public partial class Knows
{
    [Property]
    public string Since { get; set; } = "";
}
  • Quiver パッケージを参照すると、属性と Source Generator も同梱されます。
  • ImplicitUsings が有効なプロジェクト(新規テンプレート既定)では Quiver / Quiver.Api の using も自動で入るため、 using を省略できます(ドロップイン)。
  • 個人利用が目的のため公開バージョンは v0.1.0 (pre-release) としています。

文字列キー指定のローレベル / 型なしトラバーサル、Match DSL(宣言的パターンマッチ)、 tx.CreateNode などの低レイヤ API は docs/development.md を参照。

特徴

  • 純C#
  • サーバープロセス不要
  • Source Generatorによる型安全なAPI生成
  • NativeAOT 対応
  • KNN(ベクトル検索)とグラフトラバーサル・BM25 全文検索を組み合わせたハイブリッド検索

ユースケース: ローカル RAG バックエンド

ベクトル検索(KNN)・BM25 全文検索とのハイブリッド検索・グラフ走査(ヒットしたチャンクの 前後文脈や親文書への連結)・メタデータフィルタを 1 ファイル・1 プロセス・外部依存なしで 組み合わせられるため、ローカル RAG(検索拡張生成)のバックエンドに適しています。

RAG 用スキーマ層 Quiver.Rag(文書取込・チャンキング・再取込・hybrid 検索 + graph expansion)を同梱しています。利用例は samples/Quiver.Samples.Rag、 レシピは cookbook の「ローカル RAG」 を参照してください。

ベンチマーク(参考値)

操作 実測
ノード作成(単一 tx 償却) ~3.5–4 µs/op(~250K ops/s)
ノード作成 + プロパティ設定(同上) ~6 µs/op
リレーション作成(同上) ~7 µs/op(~140K ops/s)
単発 durable commit(1 op = 1 commit、単一スレッド) ~1.0 ms/commit(WAL flush 律速)
1-hop scan(degree 100、隣接ブロック) ~0.35 µs(~3.5 ns/edge)
1-hop scan(degree 100、索引なし linked-list) ~11 µs(~0.11 µs/edge)
BFS 2-hop(ハブ degree 100、leaf 10,000、隣接ブロック) ~0.037 ms
1-hop クエリ(g.Node().Out()、degree 100、隣接ブロック) ~4.2 µs/query(~42 ns/edge)
BulkLoader(10 万 edge) 通常 TX(batch 1000)比 ~11.8×

AMD Ryzen 7 5700X / .NET 10 / best-of-N の in-process Stopwatch による参考計測値。 計測条件・詳細・追加ベンチは docs/development.md を参照。

制限事項 (Limitations)

Quiver は組み込み用途に最適化されたエンジンであり、以下の制限があります。 詳細は docs/spec/08_known_limits.md を参照してください。

制限 概要 緩和策
単一ライタ 書き込みトランザクションは同時に 1 つのみ。トランザクションはスレッドアフィン アプリ側で書き込みゲート (SemaphoreSlim(1,1)) または専用ライタスレッドを使用
In-Process のみ サーバモード・ネットワークアクセスなし。1 プロセスが排他的にファイルを開く マルチプロセスが必要なら上位に gRPC/HTTP ラッパを配置
自動マイグレーションなし フォーマットバージョン不一致で例外スロー。in-place 自動変換パスは存在しない ソースデータから再構築。1.x 内ではフォーマット固定
HNSW 上書き ベクトル上書き時にグラフトポロジを再リンクしない(検索品質がわずかに劣化しうる) tombstone 超過で自動 rebuild。頻繁更新時はノード削除→再作成

その他の資料

詳細ドキュメント

資料 説明
Getting Started まずはここから
Concepts Node/Relationship, Transaction, Traversal, MERGE, KNN, Backends など
Tutorials チュートリアル
Cookbook 典型ユースケースのレシピ集
運用ガイド quickstart, backup/restore, performance tuning, recoveryなど
用語辞書 API に登場する概念の定義・用語集
アーキテクチャ概要 全体構成、データフロー、運用上の注意
アーキテクチャ図 Mermaid による本プロジェクトの構成図集

実装サンプル

サンプル 内容
Quiver.Samples.Crud 基本 CRUD(ノード / リレーション / プロパティ)
Quiver.Samples.SourceGen [Node] / [Relationship] 属性ベースの型付き CRUD
Quiver.Samples.Traversal 多段トラバーサル、フィルタ、可変長 repeat、集約、cursor
Quiver.Samples.Match Match DSL によるパターンマッチと MERGE / UPSERT
Quiver.Samples.Vector KNN 起点トラバーサル + graph-first ハイブリッド検索
Quiver.Samples.Hosting Microsoft.Extensions.Hosting 連携(DI)
Quiver.Samples.Observability OpenTelemetry による計測
Quiver.Samples.Migration スキーマ / データマイグレーション
Quiver.Samples.Rag Quiver.Rag で文書取込 → hybrid 検索 → graph expansion

ライセンス

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 (3)

Showing the top 3 NuGet packages that depend on Quiver:

Package Downloads
Quiver.Rag

Quiver 上のローカル RAG スキーマ層。文書取込・チャンキング・再取込・ハイブリッド検索 (ベクトル + BM25 全文検索) + グラフ展開を提供し、外部依存なし・単一ファイルでローカル RAG バックエンドを構築できる。

Quiver.OpenTelemetry

Quiver グラフデータベースの OpenTelemetry 計装登録。Quiver が発行する traces / metrics を OpenTelemetry に接続する拡張で、実 exporter (Console / Prometheus / Jaeger 等) はアプリ側で選択する。

Quiver.Hosting

Quiver グラフデータベースと Microsoft.Extensions.Hosting / DependencyInjection の統合。Options バインディング・DI 登録・ロギング連携で、汎用ホスト上のアプリに Quiver を組み込めるようにする。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 209 8/3/2026 0.6.0 is deprecated because it is no longer maintained.
0.5.0 161 7/29/2026
0.4.0 153 7/28/2026
0.3.0 159 7/26/2026
0.2.0 127 7/26/2026
0.1.0 137 6/30/2026