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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FonsecaFramework.Ai.Documents" Version="2026.11.25.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FonsecaFramework.Ai.Documents" Version="2026.11.25.5" />
                    
Directory.Packages.props
<PackageReference Include="FonsecaFramework.Ai.Documents" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FonsecaFramework.Ai.Documents --version 2026.11.25.5
                    
#r "nuget: FonsecaFramework.Ai.Documents, 2026.11.25.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FonsecaFramework.Ai.Documents@2026.11.25.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FonsecaFramework.Ai.Documents&version=2026.11.25.5
                    
Install as a Cake Addin
#tool nuget:?package=FonsecaFramework.Ai.Documents&version=2026.11.25.5
                    
Install as a Cake Tool

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
PDF 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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