File size: 223 Bytes
d17ba2d
 
 
 
 
 
 
1
2
3
4
5
6
7
from langchain_community.document_loaders import UnstructuredPDFLoader

def ingest_pdf(path):
    loader = UnstructuredPDFLoader()
    text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)

    return data