Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Chunk content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent.



4216
4217
4218
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4216

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentString

Chunk textual content. Corresponds to the JSON property content

Returns:

  • (String)


4201
4202
4203
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4201

def content
  @content
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


4206
4207
4208
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4206

def page_identifier
  @page_identifier
end

#relevance_scoreFloat

The relevance of the chunk for a given query. Values range from 0.0 ( completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation. Corresponds to the JSON property relevanceScore

Returns:

  • (Float)


4214
4215
4216
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4214

def relevance_score
  @relevance_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4221
4222
4223
4224
4225
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4221

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @page_identifier = args[:page_identifier] if args.key?(:page_identifier)
  @relevance_score = args[:relevance_score] if args.key?(:relevance_score)
end