langchain.js
    Preparing search index...

    Interface that defines the methods for loading and splitting documents.

    interface DocumentLoader {
        load(): Promise<Document<Record<string, any>>[]>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Returns Promise<Document<Record<string, any>>[]>