Table of Contents

Class GeminiCorpusChunkId

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.

public class GeminiCorpusChunkId : IGeminiCorpusResourceId
Inheritance
object
GeminiCorpusChunkId
Implements
Extension Methods

Constructors

GeminiCorpusChunkId(string)

Creates a new GeminiCorpusChunkId.

public GeminiCorpusChunkId(string chunkName)

Parameters

chunkName string

The name (format 'corpora/{corpusId}/documents/{documentId}/chunks/{chunkId}') of the Chunk.

GeminiCorpusChunkId(GeminiCorpusDocumentId, string)

Creates a new GeminiCorpusChunkId.

public GeminiCorpusChunkId(GeminiCorpusDocumentId documentId, string chunkId)

Parameters

documentId GeminiCorpusDocumentId

The resource ID of the Documet which contains the Chunk.

chunkId string

The ID of the Chunk.

Fields

CorpusId

The ID of the Corpus which contains this Chunk's parent Document.

public string CorpusId

Field Value

string

DocumentId

The ID of this Chunk's parent Document.

public string DocumentId

Field Value

string

Properties

ResourceId

The ID of the Chunk.

public string ResourceId { get; set; }

Property Value

string

ResourceName

The resource name of this Chunk (format 'corpora/{corpusId}/documents/{documentId}/chunks/{chunkId}').

public string ResourceName { get; }

Property Value

string

Operators

explicit operator GeminiCorpusChunkId(string)

Creates a new GeminiCorpusChunkId.

public static explicit operator GeminiCorpusChunkId(string chunkName)

Parameters

chunkName string

The name (format 'corpora/{corpusId}/documents/{documentId}/chunks/{chunkId}') of the Chunk.

Returns

GeminiCorpusChunkId