Table of Contents

Class PlainTextDocumentLoader

Namespace
Mythosia.AI.Rag.Loaders
Assembly
Mythosia.AI.Rag.dll

Loads plain text files (.txt, .md, .csv, .json, .xml, .html, etc.) as DoclingDocuments.

public class PlainTextDocumentLoader : IDocumentLoader
Inheritance
PlainTextDocumentLoader
Implements
Inherited Members

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).

public 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.