Method: corpora.documents.chunks.create

Creates a Chunk.

HTTP request

POST https://generativelanguage.googleapis.com/v1beta/{parent=corpora/*/documents/*}/chunks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the Document where this Chunk will be created. Example: corpora/my-corpus-123/documents/the-doc-abc

Request body

The request body contains an instance of Chunk.

Response body

If successful, the response body contains a newly created instance of Chunk.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language.retriever

For more information, see the Authentication Overview.