A class that extends the BaseDocumentLoader class. It represents a document loader that loads documents from EPUB files.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

filePath: string

Methods

  • Loads the documents and splits them using a specified text splitter.

    Parameters

    • splitter: TextSplitter = ...

    Returns Promise<Document[]>

    A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.

  • A protected method that takes an EPUB object as a parameter and returns a promise that resolves to an array of objects representing the content and metadata of each chapter.

    Parameters

    • epub: EPub

      The EPUB object to parse.

    Returns Promise<{
        pageContent: string;
        metadata?: object;
    }[]>

    A promise that resolves to an array of objects representing the content and metadata of each chapter.

Generated using TypeDoc