From ebf5be7a3081d969210c1d6d9751f4a6486a61ac Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 1 Aug 2024 14:32:49 -0700 Subject: [PATCH] fix dup vars error --- .../docs/integrations/document_loaders/web_loaders/pdf.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/core_docs/docs/integrations/document_loaders/web_loaders/pdf.ipynb b/docs/core_docs/docs/integrations/document_loaders/web_loaders/pdf.ipynb index a0789ee0f93f..a2b6c56d4065 100644 --- a/docs/core_docs/docs/integrations/document_loaders/web_loaders/pdf.ipynb +++ b/docs/core_docs/docs/integrations/document_loaders/web_loaders/pdf.ipynb @@ -254,7 +254,7 @@ "\n", "const blob = new Blob(); // e.g. from a file input\n", "\n", - "const loader = new WebPDFLoader(blob, {\n", + "const customBuildLoader = new WebPDFLoader(blob, {\n", " // you may need to add `.then(m => m.default)` to the end of the import\n", " pdfjs: () => import(\"pdfjs-dist/legacy/build/pdf.js\"),\n", "});" @@ -280,7 +280,8 @@ "\n", "const blob = new Blob(); // e.g. from a file input\n", "\n", - "const loader = new WebPDFLoader(blob, {\n", + "// new Blob(); e.g. from a file input\n", + "const eliminatingExtraSpacesLoader = new WebPDFLoader(new Blob(), {\n", " parsedItemSeparator: \"\",\n", "});" ]