UNPKG

@jackhua/mini-langchain

Version:

A lightweight TypeScript implementation of LangChain with cost optimization features

29 lines 787 B
/** * Directory document loader */ import { BaseDocumentLoader } from './base'; import { Document } from '../core/types'; /** * Load all documents from a directory */ export declare class DirectoryLoader extends BaseDocumentLoader { private directoryPath; private glob; private loader; private recursive; private silent; constructor(directoryPath: string, options?: { glob?: string; loader?: (filePath: string) => BaseDocumentLoader; recursive?: boolean; silent?: boolean; }); load(): Promise<Document[]>; private getFiles; private matchesGlob; } /** * Create loader based on file extension */ export declare function createLoader(filePath: string): BaseDocumentLoader; //# sourceMappingURL=directory.d.ts.map