Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Chunk.
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chunk_metadata
def chunk_metadata() -> ::Google::Cloud::DiscoveryEngine::V1::Chunk::ChunkMetadata
- (::Google::Cloud::DiscoveryEngine::V1::Chunk::ChunkMetadata) — Output only. Metadata of the current chunk.
#content
def content() -> ::String
- (::String) — Content is a string from a document (parsed content).
#content=
def content=(value) -> ::String
- value (::String) — Content is a string from a document (parsed content).
- (::String) — Content is a string from a document (parsed content).
#derived_struct_data
def derived_struct_data() -> ::Google::Protobuf::Struct
- (::Google::Protobuf::Struct) — Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
#document_metadata
def document_metadata() -> ::Google::Cloud::DiscoveryEngine::V1::Chunk::DocumentMetadata
- (::Google::Cloud::DiscoveryEngine::V1::Chunk::DocumentMetadata) — Metadata of the document from the current chunk.
#document_metadata=
def document_metadata=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Chunk::DocumentMetadata
- value (::Google::Cloud::DiscoveryEngine::V1::Chunk::DocumentMetadata) — Metadata of the document from the current chunk.
- (::Google::Cloud::DiscoveryEngine::V1::Chunk::DocumentMetadata) — Metadata of the document from the current chunk.
#id
def id() -> ::String
- (::String) — Unique chunk ID of the current chunk.
#id=
def id=(value) -> ::String
- value (::String) — Unique chunk ID of the current chunk.
- (::String) — Unique chunk ID of the current chunk.
#name
def name() -> ::String
-
(::String) — 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.
#name=
def name=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.
#page_span
def page_span() -> ::Google::Cloud::DiscoveryEngine::V1::Chunk::PageSpan
- (::Google::Cloud::DiscoveryEngine::V1::Chunk::PageSpan) — Page span of the chunk.
#page_span=
def page_span=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Chunk::PageSpan
- value (::Google::Cloud::DiscoveryEngine::V1::Chunk::PageSpan) — Page span of the chunk.
- (::Google::Cloud::DiscoveryEngine::V1::Chunk::PageSpan) — Page span of the chunk.
#relevance_score
def relevance_score() -> ::Float
- (::Float) — Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchService.SearchResponse][].