Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::FactChunk.
Fact Chunk.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chunk_text
def chunk_text() -> ::String
Returns
- (::String) — Text content of the fact chunk. Can be at most 10K characters long.
#chunk_text=
def chunk_text=(value) -> ::String
Parameter
- value (::String) — 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.
#index
def index() -> ::Integer
Returns
- (::Integer) — The index of this chunk. Currently, only used for the streaming mode.
#index=
def index=(value) -> ::Integer
Parameter
- value (::Integer) — 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.
#source
def source() -> ::String
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.
#source=
def source=(value) -> ::String
Parameter
- value (::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.
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.
#source_metadata
def source_metadata() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — More fine-grained information for the source reference.
#source_metadata=
def source_metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — More fine-grained information for the source reference.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — More fine-grained information for the source reference.