Class: Google::Cloud::DiscoveryEngine::V1::FactChunk

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

Overview

Fact Chunk.

Defined Under Namespace

Classes: SourceMetadataEntry

Instance Attribute Summary collapse

Instance Attribute Details

#chunk_text::String

Returns Text content of the fact chunk. Can be at most 10K characters long.

Returns:

  • (::String)

    Text content of the fact chunk. Can be at most 10K characters long.



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 63

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

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

#index::Integer

Returns The index of this chunk. Currently, only used for the streaming mode.

Returns:

  • (::Integer)

    The index of this chunk. Currently, only used for the streaming mode.



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 63

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

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

#source::String

Returns Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.

Returns:

  • (::String)

    Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 63

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

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

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

Returns More fine-grained information for the source reference.

Returns:

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

    More fine-grained information for the source reference.



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 63

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

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