ChunkClientCreateChunkAsync Method

Creates a new Chunk resource.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<Chunk?> CreateChunkAsync(
	string parent,
	Chunk chunk
)

Parameters

parent  String
The name of the Document where this Chunk will be created. Example: corpora/my-corpus-123/documents/the-doc-abc
chunk  Chunk
The Chunk to create.

Return Value

TaskChunk
The created Chunk.

See Also