UnstructuredMemoryLoaderOptions: {
    filePath: string | string[];
    buffer?: never;
    fileName?: never;
} | {
    fileName: string;
    buffer?: Buffer;
    filePath?: never;
}

Options for the UnstructuredMemoryLoader.

Type declaration

  • filePath: string | string[]

    The path to the file, or an array of paths to multiple files.

  • Optionalbuffer?: never

    Buffer can not be defined if passing paths to files.

  • OptionalfileName?: never

Type declaration

  • fileName: string

    The name of the file.

  • Optionalbuffer?: Buffer

    The buffer containing the file content.

  • OptionalfilePath?: never