⚠️ Deprecated ⚠️

This feature is deprecated and will be removed in the future.

It is not recommended for use.

  • Import from "@langchain/community/document_loaders/fs/epub" instead. This entrypoint will be removed in 0.3.0.

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

  • A method that loads the EPUB file and returns a promise that resolves to an array of Document instances.

    Returns Promise<Document[]>

    A promise that resolves to an array of Document instances.

  • 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