Rag.NET.QueryTechniques
3.0.1
See the version list below for details.
dotnet add package Rag.NET.QueryTechniques --version 3.0.1
NuGet\Install-Package Rag.NET.QueryTechniques -Version 3.0.1
<PackageReference Include="Rag.NET.QueryTechniques" Version="3.0.1" />
<PackageVersion Include="Rag.NET.QueryTechniques" Version="3.0.1" />
<PackageReference Include="Rag.NET.QueryTechniques" />
paket add Rag.NET.QueryTechniques --version 3.0.1
#r "nuget: Rag.NET.QueryTechniques, 3.0.1"
#:package Rag.NET.QueryTechniques@3.0.1
#addin nuget:?package=Rag.NET.QueryTechniques&version=3.0.1
#tool nuget:?package=Rag.NET.QueryTechniques&version=3.0.1
Rag.NET.QueryTechniques
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
Query-side retrieval techniques for Rag.NET: HyDE (hypothetical document embeddings), multi-query expansion, and contextual compression of retrieved chunks.
Install
dotnet add package Rag.NET.QueryTechniques
The core Rag.NET package references this one, so most applications already have it;
install it directly only when composing a custom builder.
Setup
Inside your AddRagNet(...) builder callback:
using Rag.NET.QueryTechniques;
rag.UseHyde()
.UseMultiQueryRetrieval();
Both are then switched per request via RetrievalOptions.UseHyde /
RetrievalOptions.UseMultiQuery.
Example
Contextual compression trims each retrieved chunk to the sentences that matter for the query before the prompt is built:
using Rag.NET.QueryTechniques;
rag.UseContextualCompression(o =>
{
o.KeepTopSentences = 3; // default: extractive, no extra LLM call
});
Switch o.Strategy to the LLM-abstractive compressor when you want summarised rather
than extracted context.
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
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.ML.Tokenizers (>= 3.0.0)
- Microsoft.ML.Tokenizers.Data.Cl100kBase (>= 3.0.0)
- Rag.NET.Abstractions (>= 3.0.1)
-
net11.0
- Microsoft.ML.Tokenizers (>= 3.0.0)
- Microsoft.ML.Tokenizers.Data.Cl100kBase (>= 3.0.0)
- Rag.NET.Abstractions (>= 3.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rag.NET.QueryTechniques:
| Package | Downloads |
|---|---|
|
Rag.NET
Modular RAG pipeline library for .NET — ingestion and retrieval pipeline builders, self-query, corrective RAG and conversation memory |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.4.0 | 0 | 12/5/2026 |
| 3.3.0 | 0 | 12/5/2026 |
| 3.2.0 | 103 | 12/4/2026 |
| 3.1.1 | 232 | 12/3/2026 |
| 3.1.0 | 294 | 12/3/2026 |
| 3.0.3 | 328 | 12/2/2026 |
| 3.0.2 | 352 | 12/2/2026 |
| 3.0.1 | 466 | 12/1/2026 |
| 3.0.0 | 535 | 12/1/2026 |
| 2.0.4 | 534 | 11/30/2026 |
| 2.0.3 | 712 | 11/30/2026 |
| 2.0.2 | 722 | 11/29/2026 |
| 2.0.1 | 625 | 11/26/2026 |
| 2.0.0 | 577 | 11/24/2026 |
| 1.10.4 | 564 | 11/21/2026 |
| 1.10.3 | 541 | 11/19/2026 |
| 1.10.2 | 528 | 11/19/2026 |
| 1.10.1 | 533 | 11/18/2026 |
| 1.10.0 | 545 | 11/18/2026 |
| 1.9.2 | 555 | 11/16/2026 |