Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::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.
#domain
def domain() -> ::String
Returns
- (::String) — The domain of the source.
#domain=
def domain=(value) -> ::String
Parameter
- value (::String) — The domain of the source.
Returns
- (::String) — The domain of the source.
#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.
#title
def title() -> ::String
Returns
- (::String) — The title of the source.
#title=
def title=(value) -> ::String
Parameter
- value (::String) — The title of the source.
Returns
- (::String) — The title of the source.
#uri
def uri() -> ::String
Returns
- (::String) — The URI of the source.
#uri=
def uri=(value) -> ::String
Parameter
- value (::String) — The URI of the source.
Returns
- (::String) — The URI of the source.