Package dev.langchain4j.data.document
Class DocumentLoader
-
- All Implemented Interfaces:
public class DocumentLoader
Utility class for loading documents.
-
-
Method Summary
Modifier and Type Method Description static Document
load(DocumentSource source, DocumentParser parser)
Loads a document from the given source using the given parser. -
-
Method Detail
-
load
static Document load(DocumentSource source, DocumentParser parser)
Loads a document from the given source using the given parser.
Forwards the source Metadata to the parsed Document.
- Parameters:
source
- The source from which the document will be loaded.parser
- The parser that will be used to parse the document.- Returns:
The loaded document.
-
-
-
-