Class Chunk.Builder
java.lang.Object
ai.docling.serve.api.chunk.response.Chunk.Builder
- Enclosing class:
- Chunk
-
Method Summary
Modifier and TypeMethodDescriptionbuild()captions(Collection<? extends String> captions) chunkIndex(int chunkIndex) docItems(Collection<? extends String> docItems) headings(Collection<? extends String> headings) pageNumber(Integer pageNumber) pageNumbers(Collection<? extends Integer> pageNumbers) toString()
-
Method Details
-
filename
- Returns:
this.
-
chunkIndex
- Returns:
this.
-
text
- Returns:
this.
-
rawText
- Returns:
this.
-
numTokens
- Returns:
this.
-
heading
-
headings
-
clearHeadings
-
caption
-
captions
-
clearCaptions
-
docItem
-
docItems
-
clearDocItems
-
pageNumber
-
pageNumbers
-
clearPageNumbers
-
metadata
-
metadata
-
clearMetadata
-
build
-
toString
-