Rag.NET.Chunking.Templates
1.0.0
dotnet add package Rag.NET.Chunking.Templates --version 1.0.0
NuGet\Install-Package Rag.NET.Chunking.Templates -Version 1.0.0
<PackageReference Include="Rag.NET.Chunking.Templates" Version="1.0.0" />
<PackageVersion Include="Rag.NET.Chunking.Templates" Version="1.0.0" />
<PackageReference Include="Rag.NET.Chunking.Templates" />
paket add Rag.NET.Chunking.Templates --version 1.0.0
#r "nuget: Rag.NET.Chunking.Templates, 1.0.0"
#:package Rag.NET.Chunking.Templates@1.0.0
#addin nuget:?package=Rag.NET.Chunking.Templates&version=1.0.0
#tool nuget:?package=Rag.NET.Chunking.Templates&version=1.0.0
Rag.NET.Chunking.Templates
Domain-specific chunking templates for Rag.NET: legal documents, books, academic papers, Q&A pairs (CSV/XLSX), email threads and resumes — each template knows its domain's structure (clauses, chapters, sections, rows, turns) and chunks along it.
Install
dotnet add package Rag.NET.Chunking.Templates
Install alongside the core pipeline package (dotnet add package Rag.NET), which supplies
the AddRagNet(...) builder the templates register into.
Setup
Inside your AddRagNet(...) builder callback, pick the template that matches the corpus:
using Rag.NET.Chunking.Templates;
rag.UseLegalChunking();
Example
Each template has its own options; Q&A pairs, for instance, reads a spreadsheet column pair and emits one chunk per question/answer:
using Rag.NET.Chunking.Templates;
rag.UseQAPairsChunking(options =>
{
options.QuestionColumn = "Question";
options.AnswerColumn = "Answer";
options.SkipHeader = true; // default
});
Also available: UseBookChunking (chapters and sections), UseAcademicPaperChunking
(abstract, sections, references), UseEmailChunking (thread turns) and
UseResumeChunking (experience, education, skills).
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. |
-
net10.0
- ClosedXML (>= 0.105.1)
- CsvHelper (>= 33.1.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.9.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Rag.NET.Abstractions (>= 1.0.0)
- Rag.NET.Chunking (>= 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.