From e09f5ff897543a93f561af68e3173050b1fe4b45 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 9 Apr 2024 01:06:26 +0200 Subject: Fix import order --- rag/retriever/parser/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rag/retriever/parser/pdf.py') diff --git a/rag/retriever/parser/pdf.py b/rag/retriever/parser/pdf.py index 410f027..4c5addc 100644 --- a/rag/retriever/parser/pdf.py +++ b/rag/retriever/parser/pdf.py @@ -3,11 +3,11 @@ from pathlib import Path from typing import List, Optional from langchain.text_splitter import RecursiveCharacterTextSplitter -from langchain_core.documents import Document +from langchain_community.document_loaders.blob_loaders import Blob from langchain_community.document_loaders.parsers.pdf import ( PyPDFParser, ) -from langchain_community.document_loaders.blob_loaders import Blob +from langchain_core.documents import Document class PDFParser: -- cgit v1.2.3-70-g09d2