Class: Google::Cloud::DiscoveryEngine::V1::FactChunk
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::FactChunk
- 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
-
#chunk_text ⇒ ::String
Text content of the fact chunk.
-
#domain ⇒ ::String
The domain of the source.
-
#index ⇒ ::Integer
The index of this chunk.
-
#source ⇒ ::String
Source from which this fact chunk was retrieved.
-
#source_metadata ⇒ ::Google::Protobuf::Map{::String => ::String}
More fine-grained information for the source reference.
-
#title ⇒ ::String
The title of the source.
-
#uri ⇒ ::String
The URI of the source.
Instance Attribute Details
#chunk_text ⇒ ::String
Returns Text content of the fact chunk. Can be at most 10K characters long.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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 |
#domain ⇒ ::String
Returns The domain of the source.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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 |
#title ⇒ ::String
Returns The title of the source.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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 |
#uri ⇒ ::String
Returns The URI of the source.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'proto_docs/google/cloud/discoveryengine/v1/grounding.rb', line 72 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 |