summaryrefslogtreecommitdiff
path: root/rag/retriever/parser
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-09 01:06:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-04-09 01:06:26 +0200
commite09f5ff897543a93f561af68e3173050b1fe4b45 (patch)
tree47b2047eb0071f782e77ae030a97edbd17f47785 /rag/retriever/parser
parent73a4adb6d4161ea222ed1ba56413571892da73d6 (diff)
Fix import order
Diffstat (limited to 'rag/retriever/parser')
-rw-r--r--rag/retriever/parser/pdf.py4
1 files changed, 2 insertions, 2 deletions
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: