ChunkClientBatchCreateChunksAsync Method

Batches create Chunk resources.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<BatchCreateChunksResponse?> BatchCreateChunksAsync(
	string parent,
	List<CreateChunkRequest> requests
)

Parameters

parent  String
The name of the Document where this batch of Chunks will be created. Example: corpora/my-corpus-123/documents/the-doc-abc
requests  ListCreateChunkRequest
The request messages specifying the Chunks to create. A maximum of 100 Chunks can be created in a batch.

Return Value

TaskBatchCreateChunksResponse
A list of created Chunks.

See Also