AI Dev Kit
Search Results for

    Show / Hide 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.

    Inheritance
    object
    Chunk
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class Chunk

    Properties

    CreateTime

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

    Declaration
    public ZuluTime? CreateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?

    CustomMetadata

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

    Declaration
    public Dictionary<string, CustomMetadataValue> CustomMetadata { get; set; }
    Property Value
    Type Description
    Dictionary<string, CustomMetadataValue>

    Data

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

    Declaration
    public ChunkData Data { get; set; }
    Property Value
    Type Description
    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

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    State

    Output only. Current state of the Chunk.

    Declaration
    public State? State { get; set; }
    Property Value
    Type Description
    State?

    UpdateTime

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

    Declaration
    public ZuluTime? UpdateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?
    In this article
    Back to top Generated by DocFX