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
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class Chunk

    Properties

    | Edit this page View Source

    CreateTime

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

    Declaration
    [JsonProperty("createTime")]
    public ZuluTime? CreateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?
    | Edit this page View Source

    CustomMetadata

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

    Declaration
    [JsonProperty("customMetadata")]
    [JsonConverter(typeof(GoogleMetadataConverter))]
    public Dictionary<string, GoogleMetadata> CustomMetadata { get; set; }
    Property Value
    Type Description
    Dictionary<string, GoogleMetadata>
    | Edit this page View Source

    Data

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

    Declaration
    [JsonProperty("data")]
    public ChunkData Data { get; set; }
    Property Value
    Type Description
    ChunkData
    | Edit this page View Source

    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
    [JsonProperty("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    State

    Output only. Current state of the Chunk.

    Declaration
    [JsonProperty("state")]
    public State? State { get; set; }
    Property Value
    Type Description
    State?
    | Edit this page View Source

    UpdateTime

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

    Declaration
    [JsonProperty("updateTime")]
    public ZuluTime? UpdateTime { get; set; }
    Property Value
    Type Description
    ZuluTime?

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation