Table of Contents

Class Chunk

A Chunk is a subpart of a Document that is treated as an independent unit for the purposes of vector representation and storage. A Corpus can have a maximum of 1 million Chunks. Patch request has 'updateMask' query parameter: the list of fields to update. Currently, this only supports updating customMetadata and data.

public class Chunk
Inheritance
object
Chunk

Properties

CreateTime

Output only. The Timestamp of when the Chunk was created.

public ZuluTime? CreateTime { get; set; }

Property Value

ZuluTime?

CustomMetadata

Optional. User provided custom metadata stored as key-value pairs. The maximum number of CustomMetadata per chunk is 20.

public Dictionary<string, GoogleMetadata> CustomMetadata { get; set; }

Property Value

Dictionary<string, GoogleMetadata>

Data

Required. The content for the Chunk, such as the text string. The maximum number of tokens per chunk is 2043.

public ChunkData Data { get; set; }

Property Value

ChunkData

Name

Immutable. Identifier. The Chunk resource name. The ID (name excluding the "corpora//documents//chunks/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a random 12-character unique ID will be generated. Example: corpora/{corpus_id}/documents/{document_id}/chunks/123a456b789c

public string Name { get; set; }

Property Value

string

State

Output only. Current state of the Chunk.

public State? State { get; set; }

Property Value

State?

UpdateTime

Output only. The Timestamp of when the Chunk was last updated.

public ZuluTime? UpdateTime { get; set; }

Property Value

ZuluTime?