quivr/loaders/pdf.py
2023-05-17 12:12:52 +02:00

7 lines
217 B
Python

from .common import process_file
from langchain.document_loaders import PyPDFLoader
def process_pdf(vector_store, file, stats_db):
return process_file(vector_store, file, PyPDFLoader, ".pdf", stats_db=stats_db)