Qavren.Edge.Rag
1.0.0
Prefix Reserved
dotnet add package Qavren.Edge.Rag --version 1.0.0
NuGet\Install-Package Qavren.Edge.Rag -Version 1.0.0
<PackageReference Include="Qavren.Edge.Rag" Version="1.0.0" />
<PackageVersion Include="Qavren.Edge.Rag" Version="1.0.0" />
<PackageReference Include="Qavren.Edge.Rag" />
paket add Qavren.Edge.Rag --version 1.0.0
#r "nuget: Qavren.Edge.Rag, 1.0.0"
#:package Qavren.Edge.Rag@1.0.0
#addin nuget:?package=Qavren.Edge.Rag&version=1.0.0
#tool nuget:?package=Qavren.Edge.Rag&version=1.0.0
Qavren.Edge.Rag
The retrieval-augmented generation recipe of the Qavren.Edge suite, over any
Microsoft.Extensions.AI chat client and any Microsoft.Extensions.VectorData store:
IEdgeRetriever, VectorStoreRetriever (keyed collections, hybrid search opt-in), the
UseRag() pipeline step that puts numbered context under a token budget, [n] citations
returned as CitationAnnotation with text-span regions, and ExtractiveChatClient as the
no-LLM floor. No ONNX dependency; pairs with Qavren.Edge.Chat.Onnx or any other client.
dotnet add package Qavren.Edge.Rag
builder.UseQavrenEdge(edge => edge
.UseSqliteNative()
.AddSqlite(o => o.DatabaseName = "notes.db")
.AddOnnxEmbeddings(o => o.Preset = EmbeddingPresets.MiniLmL6V2Int8)
.AddVectorStore()
.AddVectorCollectionMigration<string, Note>(version: 1, "notes")
.AddOnnxChat(ChatPresets.Llama32_1BInstructInt4, pipeline: chat => chat.UseRag())
.AddVectorStoreRetriever<string, Note>("notes",
n => new RagSource(n.Key, n.Body) { Title = n.Title, Uri = n.Url }));
var response = await chat.GetResponseAsync("what does the warranty cover?");
foreach (var citation in response.Messages[^1].Contents
.SelectMany(c => c.Annotations ?? [])
.OfType<CitationAnnotation>())
Console.WriteLine($"[{citation.Title}] {citation.Url}");
When streaming, citations arrive once on the final metadata update and their spans index the accumulated answer.
Sub-project README: chat/README.md. MIT licensed. https://github.com/qavren-oss/qavren-edge
| 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.AI (>= 10.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.VectorData.Abstractions (>= 10.10.0)
- Qavren.Edge.Core (>= 1.0.0)
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 |
|---|---|---|
| 1.0.0 | 522 | 9/25/2026 |
| 1.0.0-rc.1 | 80 | 9/24/2026 |
| 0.1.0-preview.1 | 81 | 9/13/2026 |