ChunkClientBatchCreateChunksAsync Method
Batches create
Chunk resources.
Namespace: GenerativeAI.ClientsAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public Task<BatchCreateChunksResponse?> BatchCreateChunksAsync(
string parent,
List<CreateChunkRequest> requests
)
- 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.
TaskBatchCreateChunksResponseA list of created
Chunks.