Table of Contents

Method AddDocumentExtractor

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

AddDocumentExtractor(EdgeBuilder, IDocumentExtractor)

Registers one consumer IDocumentExtractor, ahead of the built-ins. The registry is composed at RESOLVE time, so this may be called before or after AddIngestion(EdgeBuilder, int, Action<IngestionOptions>?) — which is what makes AddPdfExtractor() and AddDocxExtractor() order-independent.

public static EdgeBuilder AddDocumentExtractor(this EdgeBuilder builder, IDocumentExtractor extractor)

Parameters

builder EdgeBuilder

The Qavren.Edge builder.

extractor IDocumentExtractor

The extractor.

Returns

EdgeBuilder

The builder, for chaining.

AddDocumentExtractor(EdgeBuilder, Func<IServiceProvider, IDocumentExtractor>)

The factory overload, for an extractor that needs services.

public static EdgeBuilder AddDocumentExtractor(this EdgeBuilder builder, Func<IServiceProvider, IDocumentExtractor> factory)

Parameters

builder EdgeBuilder

The Qavren.Edge builder.

factory Func<IServiceProvider, IDocumentExtractor>

Builds the extractor.

Returns

EdgeBuilder

The builder, for chaining.