langchain-hs-0.0.1.0: Haskell implementation of Langchain
Copyright(C) 2025 Tushar Adhatrao
LicenseMIT
MaintainerTushar Adhatrao <tusharadhatrao@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Langchain.DocumentLoader.PdfLoader

Description

This module provides a loader for PDF files by implementing the BaseLoader interface from Langchain.DocumentLoader.Core. It uses the Document library to open a PDF and extract its content, turning each page into a Document. Additionally, it provides a method to load the raw content of the file and split it using a recursive character splitter.

Synopsis

Documentation

data PdfLoader Source #

A loader for PDF files.

The PdfLoader data type encapsulates a FilePath pointing to a PDF document. It implements the BaseLoader interface to provide methods for loading and splitting PDF content.

Constructors

PdfLoader FilePath 

Instances

Instances details
BaseLoader PdfLoader Source # 
Instance details

Defined in Langchain.DocumentLoader.PdfLoader