Package dev.langchain4j.data.document
Interface DocumentSource
-
- All Implemented Interfaces:
public interface DocumentSourceDefines the interface for a Document source. Documents can be loaded from various sources such as the file system, HTTP, FTP, etc.
-
-
Method Summary
Modifier and Type Method Description abstract InputStreaminputStream()Provides an InputStream to read the content of the document. abstract Metadatametadata()Returns the metadata associated with the source of the document. -
-
Method Detail
-
inputStream
abstract InputStream inputStream()
Provides an InputStream to read the content of the document. This method can be implemented to read from various sources like a local file or a network connection.
- Returns:
An InputStream from which the document content can be read.
-
-
-
-