Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
Instance Attribute Summary collapse
-
#chunk_metadata ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata
Metadata of the current chunk.
-
#content ⇒ String
Content is a string from a document (parsed content).
-
#derived_struct_data ⇒ Hash<String,Object>
Output only.
-
#document_metadata ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
Document metadata contains the information of the document of the current chunk.
-
#id ⇒ String
Unique chunk ID of the current chunk.
-
#name ⇒ String
The full resource name of the chunk.
-
#page_span ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan
Page span of the chunk.
-
#relevance_score ⇒ Float
Represents the relevance score based on similarity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaChunk
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaChunk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaChunk
Returns a new instance of GoogleCloudDiscoveryengineV1alphaChunk.
3341 3342 3343 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_metadata ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata
Metadata of the current chunk. This field is only populated on SearchService.
Search API.
Corresponds to the JSON property chunkMetadata
3297 3298 3299 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3297 def @chunk_metadata end |
#content ⇒ String
Content is a string from a document (parsed content).
Corresponds to the JSON property content
3302 3303 3304 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3302 def content @content end |
#derived_struct_data ⇒ Hash<String,Object>
Output only. This field is OUTPUT_ONLY. It contains derived data that are not
in the original input document.
Corresponds to the JSON property derivedStructData
3308 3309 3310 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3308 def derived_struct_data @derived_struct_data end |
#document_metadata ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
Document metadata contains the information of the document of the current
chunk.
Corresponds to the JSON property documentMetadata
3314 3315 3316 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3314 def @document_metadata end |
#id ⇒ String
Unique chunk ID of the current chunk.
Corresponds to the JSON property id
3319 3320 3321 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3319 def id @id end |
#name ⇒ 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.
Corresponds to the JSON propertyname`
3327 3328 3329 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3327 def name @name end |
#page_span ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan
Page span of the chunk.
Corresponds to the JSON property pageSpan
3332 3333 3334 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3332 def page_span @page_span end |
#relevance_score ⇒ Float
Represents the relevance score based on similarity. Higher score represents
the chunk relevance. The score is in range [0.0, 1.0]. Only populated on
SearchService.SearchResponse
Corresponds to the JSON property relevanceScore
3339 3340 3341 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3339 def relevance_score @relevance_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3346 def update!(**args) @chunk_metadata = args[:chunk_metadata] if args.key?(:chunk_metadata) @content = args[:content] if args.key?(:content) @derived_struct_data = args[:derived_struct_data] if args.key?(:derived_struct_data) @document_metadata = args[:document_metadata] if args.key?(:document_metadata) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @page_span = args[:page_span] if args.key?(:page_span) @relevance_score = args[:relevance_score] if args.key?(:relevance_score) end |