Class: Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb
Overview
Search result.
Defined Under Namespace
Classes: ChunkInfo, UnstructuredDocumentInfo
Instance Attribute Summary collapse
-
#chunk_info ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::ChunkInfo
Chunk information.
-
#unstructured_document_info ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo
Unstructured document information.
Instance Attribute Details
#chunk_info ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::ChunkInfo
Returns Chunk information.
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 495 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Unstructured document information. # @!attribute [rw] document # @return [::String] # Document resource name. # @!attribute [rw] uri # @return [::String] # URI for the document. # @!attribute [rw] title # @return [::String] # Title. # @!attribute [rw] document_contexts # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>] # List of document contexts. The content will be used for Answer # Generation. This is supposed to be the main content of the document # that can be long and comprehensive. # @!attribute [rw] extractive_segments # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>] # List of extractive segments. # @!attribute [rw] extractive_answers # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>] # 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. 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 # Chunk information. # @!attribute [rw] chunk # @return [::String] # Chunk resource name. # @!attribute [rw] content # @return [::String] # Chunk textual content. # @!attribute [rw] document_metadata # @return [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::ChunkInfo::DocumentMetadata] # Metadata of the document from the current chunk. class ChunkInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Document metadata contains the information of the document of the # current chunk. # @!attribute [rw] uri # @return [::String] # Uri of the document. # @!attribute [rw] title # @return [::String] # Title of the document. class DocumentMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |
#unstructured_document_info ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo
Returns Unstructured document information.
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 495 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Unstructured document information. # @!attribute [rw] document # @return [::String] # Document resource name. # @!attribute [rw] uri # @return [::String] # URI for the document. # @!attribute [rw] title # @return [::String] # Title. # @!attribute [rw] document_contexts # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>] # List of document contexts. The content will be used for Answer # Generation. This is supposed to be the main content of the document # that can be long and comprehensive. # @!attribute [rw] extractive_segments # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>] # List of extractive segments. # @!attribute [rw] extractive_answers # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>] # 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. 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 # Chunk information. # @!attribute [rw] chunk # @return [::String] # Chunk resource name. # @!attribute [rw] content # @return [::String] # Chunk textual content. # @!attribute [rw] document_metadata # @return [::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::ChunkInfo::DocumentMetadata] # Metadata of the document from the current chunk. class ChunkInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Document metadata contains the information of the document of the # current chunk. # @!attribute [rw] uri # @return [::String] # Uri of the document. # @!attribute [rw] title # @return [::String] # Title of the document. class DocumentMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |