Class PlainTextDocumentLoader
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
sourcestringFile path, URL, or other source identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<DoclingDocument>>
A list of loaded documents.