Table of Contents

Interface IDocumentLoader

Namespace
Mythosia.Documents
Assembly
Mythosia.Documents.Abstractions.dll

Loads documents from a given source (file path, URL, etc.) and returns structured DoclingDocument objects. Implement this interface for each document type (PDF, DOCX, HTML, plain text, etc.).

public interface IDocumentLoader

Methods

LoadAsync(string, CancellationToken)

Loads one or more documents from the specified source. A single source may yield multiple documents (e.g., a ZIP archive or a directory).

Task<IReadOnlyList<DoclingDocument>> LoadAsync(string source, CancellationToken cancellationToken = default)

Parameters

source string

File path, URL, or other source identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<DoclingDocument>>

A list of loaded documents.