Class: Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb

Overview

Grounding source.

Defined Under Namespace

Classes: GoogleSearchSource, InlineSource, SearchSource

Instance Attribute Summary collapse

Instance Attribute Details

#google_search_source::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource

Returns If set, grounding is performed with Google Search.



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 171

class GroundingSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Message to be used for grounding based on inline content.
  # @!attribute [rw] grounding_facts
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact>]
  #     List of facts to be used for grounding.
  # @!attribute [rw] attributes
  #   @return [::Google::Protobuf::Map{::String => ::String}]
  #     Attributes associated with the content.
  #
  #     Common attributes include `source` (indicating where the content was
  #     sourced from) and `author` (indicating the author of the content).
  class InlineSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::String]
    class AttributesEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Message to be used for grounding with Vertex AI Search.
  # @!attribute [rw] serving_config
  #   @return [::String]
  #     The resource name of the Engine to use.
  #
  #     Format:
  #     `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
  # @!attribute [rw] max_result_count
  #   @return [::Integer]
  #     Number of search results to return.
  #
  #     The default value is 10. The maximumm allowed value is 10.
  # @!attribute [rw] filter
  #   @return [::String]
  #     Filter expression to be applied to the search.
  #
  #     The syntax is the same as
  #     {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#filter SearchRequest.filter}.
  # @!attribute [rw] safe_search
  #   @return [::Boolean]
  #     If set, safe search is enabled in Vertex AI Search requests.
  class SearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Google Search config parameters.
  # @!attribute [rw] dynamic_retrieval_config
  #   @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration]
  #     Optional. Specifies the dynamic retrieval configuration for the given
  #     source.
  class GoogleSearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#inline_source::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::InlineSource

Returns If set, grounding is performed with inline content.

Returns:



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 171

class GroundingSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Message to be used for grounding based on inline content.
  # @!attribute [rw] grounding_facts
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact>]
  #     List of facts to be used for grounding.
  # @!attribute [rw] attributes
  #   @return [::Google::Protobuf::Map{::String => ::String}]
  #     Attributes associated with the content.
  #
  #     Common attributes include `source` (indicating where the content was
  #     sourced from) and `author` (indicating the author of the content).
  class InlineSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::String]
    class AttributesEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Message to be used for grounding with Vertex AI Search.
  # @!attribute [rw] serving_config
  #   @return [::String]
  #     The resource name of the Engine to use.
  #
  #     Format:
  #     `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
  # @!attribute [rw] max_result_count
  #   @return [::Integer]
  #     Number of search results to return.
  #
  #     The default value is 10. The maximumm allowed value is 10.
  # @!attribute [rw] filter
  #   @return [::String]
  #     Filter expression to be applied to the search.
  #
  #     The syntax is the same as
  #     {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#filter SearchRequest.filter}.
  # @!attribute [rw] safe_search
  #   @return [::Boolean]
  #     If set, safe search is enabled in Vertex AI Search requests.
  class SearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Google Search config parameters.
  # @!attribute [rw] dynamic_retrieval_config
  #   @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration]
  #     Optional. Specifies the dynamic retrieval configuration for the given
  #     source.
  class GoogleSearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#search_source::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::SearchSource

Returns If set, grounding is performed with Vertex AI Search.

Returns:



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 171

class GroundingSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Message to be used for grounding based on inline content.
  # @!attribute [rw] grounding_facts
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact>]
  #     List of facts to be used for grounding.
  # @!attribute [rw] attributes
  #   @return [::Google::Protobuf::Map{::String => ::String}]
  #     Attributes associated with the content.
  #
  #     Common attributes include `source` (indicating where the content was
  #     sourced from) and `author` (indicating the author of the content).
  class InlineSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::String]
    class AttributesEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Message to be used for grounding with Vertex AI Search.
  # @!attribute [rw] serving_config
  #   @return [::String]
  #     The resource name of the Engine to use.
  #
  #     Format:
  #     `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
  # @!attribute [rw] max_result_count
  #   @return [::Integer]
  #     Number of search results to return.
  #
  #     The default value is 10. The maximumm allowed value is 10.
  # @!attribute [rw] filter
  #   @return [::String]
  #     Filter expression to be applied to the search.
  #
  #     The syntax is the same as
  #     {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#filter SearchRequest.filter}.
  # @!attribute [rw] safe_search
  #   @return [::Boolean]
  #     If set, safe search is enabled in Vertex AI Search requests.
  class SearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Google Search config parameters.
  # @!attribute [rw] dynamic_retrieval_config
  #   @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration]
  #     Optional. Specifies the dynamic retrieval configuration for the given
  #     source.
  class GoogleSearchSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end