diff --git a/backend/app/parsing.py b/backend/app/parsing.py index e18b98ba..b13c4e61 100644 --- a/backend/app/parsing.py +++ b/backend/app/parsing.py @@ -1,5 +1,9 @@ """Module contains logic for parsing binary blobs into text.""" -from langchain_community.document_loaders.parsers import BS4HTMLParser, PDFMinerParser, MarkdownParser +from langchain_community.document_loaders.parsers import ( + BS4HTMLParser, + MarkdownParser, + PDFMinerParser, +) from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser from langchain_community.document_loaders.parsers.msword import MsWordParser from langchain_community.document_loaders.parsers.txt import TextParser diff --git a/backend/tests/unit_tests/agent_executor/test_upload.py b/backend/tests/unit_tests/agent_executor/test_upload.py index e238c3f8..5c4e2992 100644 --- a/backend/tests/unit_tests/agent_executor/test_upload.py +++ b/backend/tests/unit_tests/agent_executor/test_upload.py @@ -1,7 +1,8 @@ from io import BytesIO -from langchain.text_splitter import RecursiveCharacterTextSplitter from fastapi import UploadFile +from langchain.text_splitter import RecursiveCharacterTextSplitter + from app.upload import IngestRunnable, _guess_mimetype, convert_ingestion_input_to_blob from tests.unit_tests.fixtures import get_sample_paths from tests.unit_tests.utils import InMemoryVectorStore