Rag.NET.Api.Grpc.Client
2.0.0
dotnet add package Rag.NET.Api.Grpc.Client --version 2.0.0
NuGet\Install-Package Rag.NET.Api.Grpc.Client -Version 2.0.0
<PackageReference Include="Rag.NET.Api.Grpc.Client" Version="2.0.0" />
<PackageVersion Include="Rag.NET.Api.Grpc.Client" Version="2.0.0" />
<PackageReference Include="Rag.NET.Api.Grpc.Client" />
paket add Rag.NET.Api.Grpc.Client --version 2.0.0
#r "nuget: Rag.NET.Api.Grpc.Client, 2.0.0"
#:package Rag.NET.Api.Grpc.Client@2.0.0
#addin nuget:?package=Rag.NET.Api.Grpc.Client&version=2.0.0
#tool nuget:?package=Rag.NET.Api.Grpc.Client&version=2.0.0
Rag.NET.Api.Grpc.Client
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 74 packages; install only what you call. Documentation · Choosing packages
gRPC client for a remote Rag.NET.Api.Grpc host: registers an IRagPipeline
implementation that forwards every call over gRPC — the low-latency counterpart to the
REST-based Rag.NET.Api.Client.
Install
dotnet add package Rag.NET.Api.Grpc.Client
Setup
using Rag.NET.Api.Grpc.Client.DependencyInjection;
services.AddRagNetGrpcClient(o =>
{
o.BaseUrl = "https://rag-backend.internal:5001";
o.ApiKey = "your-api-key";
});
Example
Application code resolves the standard IRagPipeline; streaming answers arrive over
gRPC server streaming:
using Microsoft.Extensions.DependencyInjection;
using Rag.NET.Abstractions;
var pipeline = provider.GetRequiredService<IRagPipeline>();
await foreach (var update in pipeline.AskStreamingAsync("Summarise the incident report"))
{
if (update.TextDelta is not null)
Console.Write(update.TextDelta);
}
The client sends the full RagOptions and RetrievalOptions, Retrieval included, and the
server applies the same defaults as the in-process pipeline. Options it cannot send, a
RetrievalOptions.Filter specification or a non-text conversation turn, throw
NotSupportedException instead of being dropped. The server accepts the prompt-shaping fields
only when it opts in. Client and server must be on the same major version.
Full guide
| 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. net11.0 is compatible. |
-
net10.0
- Grpc.Net.ClientFactory (>= 2.85.0)
- Rag.NET (>= 2.0.0)
- Rag.NET.Api.Grpc (>= 2.0.0)
-
net11.0
- Grpc.Net.ClientFactory (>= 2.85.0)
- Rag.NET (>= 2.0.0)
- Rag.NET.Api.Grpc (>= 2.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 |
|---|---|---|
| 2.0.0 | 34 | 11/24/2026 |
| 1.10.4 | 95 | 11/21/2026 |
| 1.10.3 | 112 | 11/19/2026 |
| 1.10.2 | 93 | 11/19/2026 |
| 1.10.1 | 93 | 11/18/2026 |
| 1.10.0 | 98 | 11/18/2026 |
| 1.9.2 | 123 | 11/16/2026 |
| 1.9.1 | 97 | 11/16/2026 |
| 1.9.0 | 100 | 11/15/2026 |
| 1.8.4 | 95 | 11/15/2026 |
| 1.8.3 | 105 | 11/15/2026 |
| 1.8.2 | 98 | 11/14/2026 |
| 1.8.1 | 94 | 11/14/2026 |
| 1.8.0 | 99 | 11/14/2026 |
| 1.6.0 | 102 | 11/10/2026 |
| 1.5.0 | 94 | 11/9/2026 |
| 1.4.1 | 97 | 11/9/2026 |
| 1.4.0 | 96 | 11/8/2026 |
| 1.3.10 | 93 | 11/8/2026 |
| 1.3.9 | 102 | 11/7/2026 |