Class ChunkDocumentResponse.Builder
java.lang.Object
ai.docling.serve.api.chunk.response.ChunkDocumentResponse.Builder
- Enclosing class:
- ChunkDocumentResponse
Builder for creating
ChunkDocumentResponse instances.
Generated by Lombok's @Builder annotation.
Builder methods:
chunk(Chunk)- Add a single chunk (use with @Singular)chunks(List<Chunk>)- Set the list of chunksdocument(Document)- Add a single document (use with @Singular)documents(List<Document>)- Set the list of converted documentsprocessingTime(Double)- Set the processing time in seconds
-
Method Summary
Modifier and TypeMethodDescription@NonNull ChunkDocumentResponsebuild()@NonNull ChunkDocumentResponse.Builder@NonNull ChunkDocumentResponse.Builderchunks(@NonNull Collection<? extends Chunk> chunks) @NonNull ChunkDocumentResponse.Builder@NonNull ChunkDocumentResponse.Builder@NonNull ChunkDocumentResponse.Builder@NonNull ChunkDocumentResponse.Builderdocuments(@NonNull Collection<? extends Document> documents) @NonNull ChunkDocumentResponse.BuilderprocessingTime(Double processingTime) Total processing time in seconds.@NonNull StringtoString()
-
Method Details
-
chunk
-
chunks
-
clearChunks
-
document
-
documents
public @NonNull ChunkDocumentResponse.Builder documents(@NonNull Collection<? extends Document> documents) -
clearDocuments
-
processingTime
Total processing time in seconds.- Parameters:
processingTime- the processing time in seconds- Returns:
this.
-
build
-
toString
-