Class DoclingDocumentParser
java.lang.Object
dev.langchain4j.data.document.parser.docling.DoclingDocumentParser
- All Implemented Interfaces:
DocumentParser
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDoclingDocumentParser(ai.docling.serve.api.DoclingServeApi doclingClient) Deprecated, for removal: This API element is subject to removal in a future version.DoclingDocumentParser(ai.docling.serve.api.DoclingServeApi doclingClient, ai.docling.serve.api.convert.request.options.ConvertDocumentOptions options) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()parse(InputStream inputStream) Parses a givenInputStreaminto aDocument.
-
Constructor Details
-
DoclingDocumentParser
@Deprecated(forRemoval=true) public DoclingDocumentParser(ai.docling.serve.api.DoclingServeApi doclingClient) Deprecated, for removal: This API element is subject to removal in a future version. -
DoclingDocumentParser
@Deprecated(forRemoval=true) public DoclingDocumentParser(ai.docling.serve.api.DoclingServeApi doclingClient, ai.docling.serve.api.convert.request.options.ConvertDocumentOptions options) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
-
parse
Description copied from interface:DocumentParserParses a givenInputStreaminto aDocument. The specific implementation of this method will depend on the type of the document being parsed.Note: This method does not close the provided
InputStream- it is the caller's responsibility to manage the lifecycle of the stream.- Specified by:
parsein interfaceDocumentParser- Parameters:
inputStream- TheInputStreamthat contains the content of theDocument.- Returns:
- The parsed
Document.
-