Class: Google::Cloud::Dialogflow::V2::FewShotExample
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::FewShotExample
- 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.
Defined Under Namespace
Classes: ExtraInfoEntry
Instance Attribute Summary collapse
-
#conversation_context ⇒ ::Google::Cloud::Dialogflow::V2::ConversationContext
Optional.
-
#extra_info ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#output ⇒ ::Google::Cloud::Dialogflow::V2::GeneratorSuggestion
Required.
-
#summarization_section_list ⇒ ::Google::Cloud::Dialogflow::V2::SummarizationSectionList
Summarization sections.
Instance Attribute Details
#conversation_context ⇒ ::Google::Cloud::Dialogflow::V2::ConversationContext
Returns Optional. Conversation transcripts.
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 182 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">.
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 182 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.
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 182 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.
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 182 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 |