Artificial Intelligence, Machine Learning, Python, Data Science, Deep Learning.
langchain_community.document_loaders import DirectoryLoader # Directory path where your PDF files are located directory_path = "/path/to/your/folder" # Replace with your directory path # Initialize the DirectoryLoader to load only PDF files loader = DirectoryLoader(directory_path, glob="**/*.pdf")