From 3bc44b01c0fe132d75ca24f0a47dc1565eb3744a Mon Sep 17 00:00:00 2001 From: jreinjr Date: Thu, 28 Sep 2023 19:03:30 -0700 Subject: [PATCH] =?UTF-8?q?Typo=20fix=20to=20MathpixPDFLoader=20-=20change?= =?UTF-8?q?d=20processed=5Ffile=5Fformat=20default=20=E2=80=A6=20(#10960)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …from mmd to md. https://github.com/langchain-ai/langchain/issues/7282 Co-authored-by: jare0530 <7915+jare0530@users.noreply.ghe.oculus-rep.com> --- libs/langchain/langchain/document_loaders/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/document_loaders/pdf.py b/libs/langchain/langchain/document_loaders/pdf.py index a64cdb07bc..dfccf9c4bd 100644 --- a/libs/langchain/langchain/document_loaders/pdf.py +++ b/libs/langchain/langchain/document_loaders/pdf.py @@ -326,7 +326,7 @@ class MathpixPDFLoader(BasePDFLoader): def __init__( self, file_path: str, - processed_file_format: str = "mmd", + processed_file_format: str = "md", max_wait_time_seconds: int = 500, should_clean_pdf: bool = False, **kwargs: Any, @@ -335,7 +335,7 @@ class MathpixPDFLoader(BasePDFLoader): Args: file_path: a file for loading. - processed_file_format: a format of the processed file. Default is "mmd". + processed_file_format: a format of the processed file. Default is "md". max_wait_time_seconds: a maximum time to wait for the response from the server. Default is 500. should_clean_pdf: a flag to clean the PDF file. Default is False.