Skip to content

Bedrock Agent Runtime  >  Structures  >  RetrievalResultContent

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:

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.

text class-attribute instance-attribute
text: str = ''

The cited text from the data source.

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.