Class: Google::Cloud::Dialogflow::V2::FewShotExample

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/generator.rb

Overview

Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response. NEXT_ID: 10

Defined Under Namespace

Classes: ExtraInfoEntry

Instance Attribute Summary collapse

Instance Attribute Details

#conversation_context::Google::Cloud::Dialogflow::V2::ConversationContext

Returns Optional. Conversation transcripts.

Returns:



183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 183

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

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

#extra_info::Google::Protobuf::Map{::String => ::String}

Returns Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">



183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 183

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

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

#output::Google::Cloud::Dialogflow::V2::GeneratorSuggestion

Returns Required. Example output of the model.

Returns:



183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 183

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

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

#summarization_section_list::Google::Cloud::Dialogflow::V2::SummarizationSectionList

Returns Summarization sections.

Returns:



183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 183

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

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