RetrievalResultContent¶
Structure Class¶
RetrievalResultContent
dataclass
¶
Contains information about a chunk of text from a data source in the knowledge base. If the result is from a structured data source, the cell in the database and the type of the value is also identified.
This data type is used in the following API operations:
-
Retrieve response -- in the
contentfield -
RetrieveAndGenerate response -- in the
contentfield -
InvokeAgent response -- in the
contentfield
Attributes¶
audio
class-attribute
instance-attribute
¶
audio: AudioSegment | None = None
Audio segment information when the retrieval result contains audio content.
byte_content
class-attribute
instance-attribute
¶
byte_content: str | None = None
A data URI with base64-encoded content from the data source. The URI is
in the following format: returned in the following format:
data:image/jpeg;base64,${base64-encoded string}.
row
class-attribute
instance-attribute
¶
row: list[RetrievalResultContentColumn] | None = field(repr=False, default=None)
Specifies information about the rows with the cells to return in retrieval.
type
class-attribute
instance-attribute
¶
type: RetrievalResultContentType | None = None
The type of content in the retrieval result.
video
class-attribute
instance-attribute
¶
video: VideoSegment | None = None
Video segment information when the retrieval result contains video content.