Copyright | (c) 2025 Tushar Adhatrao |
---|---|
License | MIT |
Maintainer | Tushar Adhatrao <tusharadhatrao@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Langchain.DocumentLoader.FileLoader
Description
File-based document loader implementation following LangChain's document loading patterns Integrates with the core document splitting functionality for processing text files.
Example usage:
-- Load a document from file loader = FileLoader "data.txt" docs <- load loader -- Right [Document {pageContent = "File content", metadata = ...}] -- Load and split document content chunks <- loadAndSplit loader -- Right ["First paragraph", "Second paragraph", ...]
Synopsis
- data FileLoader = FileLoader FilePath
Documentation
data FileLoader Source #
File loader configuration Specifies the file path to load documents from.
Example:
>>>
FileLoader "docs/example.txt"
FileLoader "docs/example.txt"
Constructors
FileLoader FilePath |