Class: Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo

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

Overview

Unstructured document information.

Defined Under Namespace

Classes: DocumentContext, ExtractiveAnswer, ExtractiveSegment

Instance Attribute Summary collapse

Instance Attribute Details

#document::String



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#document_contexts::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#extractive_answers::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: This field is deprecated and will have no effect on the Answer generation. Please use document_contexts and extractive_segments fields. List of extractive answers.



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#extractive_segments::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#title::String



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#uri::String



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 609

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

  # Document context.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Document content to be used for answer generation.
  class DocumentContext
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive segment.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  # Answer generation will only use it if document_contexts is empty.
  # This is supposed to be shorter snippets.
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive segment content.
  class ExtractiveSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Extractive answer.
  # [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  # @!attribute [rw] page_identifier
  #   @return [::String]
  #     Page identifier.
  # @!attribute [rw] content
  #   @return [::String]
  #     Extractive answer content.
  class ExtractiveAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end