Package dev.langchain4j.data.document
Interface DocumentParser
public interface DocumentParser
Defines the interface for parsing an InputStream into a Document.
Different document types require specialized parsing logic.
-
Method Summary
Modifier and TypeMethodDescriptionparse
(InputStream inputStream) Parses an InputStream into a Document.
-
Method Details
-
parse
Parses an InputStream into a Document. The specific implementation of this method will depend on the type of the document being parsed.- Parameters:
inputStream
- The InputStream that contains the content of the document.- Returns:
- The parsed Document.
-