diff --git a/langchain/src/document_loaders/fs/pdf.ts b/langchain/src/document_loaders/fs/pdf.ts index 5da99637b04e..8f833e56eb58 100644 --- a/langchain/src/document_loaders/fs/pdf.ts +++ b/langchain/src/document_loaders/fs/pdf.ts @@ -24,7 +24,7 @@ export class PDFLoader extends BufferLoader { { splitPages = true, pdfjs = PDFLoaderImports, - parsedItemSeparator = " ", + parsedItemSeparator = "", } = {} ) { super(filePathOrBlob); diff --git a/langchain/src/document_loaders/web/pdf.ts b/langchain/src/document_loaders/web/pdf.ts index 1ef730d463c9..fdbf33b6cf2f 100644 --- a/langchain/src/document_loaders/web/pdf.ts +++ b/langchain/src/document_loaders/web/pdf.ts @@ -25,7 +25,7 @@ export class WebPDFLoader extends BaseDocumentLoader { { splitPages = true, pdfjs = PDFLoaderImports, - parsedItemSeparator = " ", + parsedItemSeparator = "", } = {} ) { super();