quivr/loaders/pdf.py

7 lines
188 B
Python
Raw Normal View History

2023-05-13 01:25:12 +03:00
from .common import process_file
from langchain.document_loaders import PyPDFLoader
def process_pdf(vector_store, file):
return process_file(vector_store, file, PyPDFLoader, ".pdf")