DeLaw_ollama / load_document.py
Sadiksmart0's picture
Upload 11 files
74d8f71 verified
raw
history blame
254 Bytes
from langchain_community.document_loaders import PDFPlumberLoader
from langchain_community.document_loaders import PyMuPDFLoader
# Load the PDF
def load_data(document):
loader = PDFPlumberLoader(document)
docs = loader.load()
return docs