Class Chunk (0.11.10)

Chunk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.

Attributes

NameDescription
name str
The full resource name of the chunk. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
id str
Unique chunk id of the current chunk.
content str
Content is a string from a document (parsed content).
document_metadata google.cloud.discoveryengine_v1alpha.types.Chunk.DocumentMetadata
Metadata of the document from the current chunk.
derived_struct_data google.protobuf.struct_pb2.Struct
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.

Classes

DocumentMetadata

DocumentMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Document metadata contains the information of the document of the current chunk.