RagChunk

@Serializable
data class RagChunk(val pageSpan: RagChunkPageSpan? = null, val text: String? = null, val chunkId: String? = null, val fileId: String? = null)

A RagChunk includes the content of a chunk of a RagFile, and associated metadata. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(pageSpan: RagChunkPageSpan? = null, text: String? = null, chunkId: String? = null, fileId: String? = null)

Properties

Link copied to clipboard
val chunkId: String? = null

The ID of the chunk.

Link copied to clipboard
val fileId: String? = null

The ID of the file that the chunk belongs to.

Link copied to clipboard

If populated, represents where the chunk starts and ends in the document.

Link copied to clipboard
val text: String? = null

The content of the chunk.