Retrieves the content of an ingested document from a knowledge base¶
Description¶
Retrieves the content of an ingested document from a knowledge base. Returns a pre-signed URL for secure document access.
Usage¶
bedrockagentruntime_get_document_content(dataSourceId, documentId,
knowledgeBaseId, outputFormat, userContext)
Arguments¶
-
dataSourceId[required] The unique identifier of the data source that contains the document.
-
documentId[required] The unique identifier of the document to retrieve content for.
-
knowledgeBaseId[required] The unique identifier of the knowledge base that contains the document.
-
outputFormatThe output format for the document content.
RAWreturns the original file.EXTRACTEDreturns parsed text as JSON. Defaults toRAW. -
userContextContains information about the user making the request. This is used for access control filtering to ensure that results only include documents the user is authorized to access.
Value¶
A list with the following syntax: