Resource: Chunk
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 Chunk
s.
JSON representation |
---|
{ "name": string, "data": { object ( |
Fields | |
---|---|
name |
Immutable. Identifier. The |
data |
Required. The content for the |
customMetadata[] |
Optional. User provided custom metadata stored as key-value pairs. The maximum number of |
createTime |
Output only. The Timestamp of when the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The Timestamp of when the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. Current state of the |
ChunkData
Extracted data that represents the Chunk
content.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
stringValue |
The |
State
States for the lifecycle of a Chunk
.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
STATE_PENDING_PROCESSING |
Chunk is being processed (embedding and vector storage). |
STATE_ACTIVE |
Chunk is processed and available for querying. |
STATE_FAILED |
Chunk failed processing. |
Methods |
|
---|---|
|
Batch create Chunk s. |
|
Batch delete Chunk s. |
|
Batch update Chunk s. |
|
Creates a Chunk . |
|
Deletes a Chunk . |
|
Gets information about a specific Chunk . |
|
Lists all Chunk s in a Document . |
|
Updates a Chunk . |