FonsecaFramework.Ai.Documents
2026.11.25.5
dotnet add package FonsecaFramework.Ai.Documents --version 2026.11.25.5
NuGet\Install-Package FonsecaFramework.Ai.Documents -Version 2026.11.25.5
<PackageReference Include="FonsecaFramework.Ai.Documents" Version="2026.11.25.5" />
<PackageVersion Include="FonsecaFramework.Ai.Documents" Version="2026.11.25.5" />
<PackageReference Include="FonsecaFramework.Ai.Documents" />
paket add FonsecaFramework.Ai.Documents --version 2026.11.25.5
#r "nuget: FonsecaFramework.Ai.Documents, 2026.11.25.5"
#:package FonsecaFramework.Ai.Documents@2026.11.25.5
#addin nuget:?package=FonsecaFramework.Ai.Documents&version=2026.11.25.5
#tool nuget:?package=FonsecaFramework.Ai.Documents&version=2026.11.25.5
FonsecaFramework.Ai.Documents
Optional document extractors for FonsecaFramework.Ai.Knowledge. References the knowledge package directly, without depending on ML training or agent orchestration from the main AI package.
| Format | Extractor | Library (license) | Locator |
|---|---|---|---|
PdfExtractor |
PdfPig (Apache-2.0) | page N |
|
Word .docx |
DocxExtractor |
DocumentFormat.OpenXml (MIT) | page N (from page breaks; approximate) |
Excel .xlsx |
XlsxExtractor |
DocumentFormat.OpenXml (MIT) | sheet Name |
PowerPoint .pptx |
PptxExtractor |
DocumentFormat.OpenXml (MIT) | slide N (includes speaker notes) |
using FonsecaFramework.Ai.Documents;
using FonsecaFramework.Ai.Knowledge;
using FonsecaFramework.Ai.Knowledge.Extraction;
// Register before AddFonsecaKnowledgeIndex, which only adds the default registry when none exists.
services.AddSingleton(ContentExtractorRegistry.CreateDefault().AddDocumentExtractors());
services.AddFonsecaKnowledgeIndex();
// Ingest
var source = new ContentSourceInfo("report.pdf", "application/pdf");
await using var stream = File.OpenRead(path);
var segments = await registry.ExtractAsync(stream, source, ct);
await index.UpsertSourceAsync(new KnowledgeSource(fileId, "report.pdf", "/files/report.pdf"), "user:42", segments, ct);
Documents are buffered in memory up to maxBytes (default 200 MB). Malformed, encrypted or oversized files throw InvalidDataException. Scanned PDFs without a text layer produce no text; route their page images through ImageDescriptionExtractor if OCR is needed. Legacy binary .doc/.xls/.ppt files are not supported.
Licensed under Apache-2.0. iText is intentionally not used (AGPL).
Changelog
2026.11.24.2
- Reference the extracted knowledge package (VectorData 11), with unchanged extractor namespaces and signatures.
- See the storage and connector compatibility guide for SQL Server, PostgreSQL, SQLite and in-memory indexing.
| 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
- DocumentFormat.OpenXml (>= 3.5.1)
- FonsecaFramework.Ai.Knowledge (>= 2026.11.25.5)
- PdfPig (>= 0.1.16)
-
net11.0
- DocumentFormat.OpenXml (>= 3.5.1)
- FonsecaFramework.Ai.Knowledge (>= 2026.11.25.5)
- PdfPig (>= 0.1.16)
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 |
|---|---|---|
| 2026.11.25.5 | 0 | 11/26/2026 |
| 2026.11.25.4 | 0 | 11/26/2026 |
| 2026.11.25.1 | 0 | 11/25/2026 |
| 2026.11.24.2 | 47 | 11/24/2026 |
| 2026.11.24.1 | 54 | 11/24/2026 |