diff --git a/Sources/LangChain/document_loaders/PDFLoader.swift b/Sources/LangChain/document_loaders/PDFLoader.swift index d13f307..c7e4226 100644 --- a/Sources/LangChain/document_loaders/PDFLoader.swift +++ b/Sources/LangChain/document_loaders/PDFLoader.swift @@ -28,7 +28,7 @@ public class PDFLoader: BaseLoader { for pageIndex in 0 ..< pdfDocument.pageCount { if let pdfPage = pdfDocument.page(at: pageIndex) { if let pageInfo = pdfPage.string { - extractedText += pageInfo + extractedText += " \(pageInfo)" } }