Package com.google.genai.types
Class RagChunkPageSpan
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RagChunkPageSpan
Represents where the chunk starts and ends in the document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for RagChunkPageSpan. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RagChunkPageSpan.Builder
builder()
Instantiates a builder for RagChunkPageSpan.Page where chunk starts in the document.static RagChunkPageSpan
Deserializes a JSON string to a RagChunkPageSpan object.lastPage()
Page where chunk ends in the document.abstract RagChunkPageSpan.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RagChunkPageSpan
public RagChunkPageSpan()
-
-
Method Details
-
firstPage
Page where chunk starts in the document. Inclusive. 1-indexed. -
lastPage
Page where chunk ends in the document. Inclusive. 1-indexed. -
builder
Instantiates a builder for RagChunkPageSpan. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RagChunkPageSpan object.
-