get_knowledge_base_documents
async
¶
get_knowledge_base_documents(
knowledge_base_id: Id,
data_source_id: Id,
document_identifiers: DocumentIdentifiers,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = None,
) -> GetKnowledgeBaseDocumentsResponse
Retrieves specific documents from a data source that is connected to a knowledge base. For more information, see Ingest changes directly into a knowledge base in the Amazon Bedrock User Guide.
Parameters:
-
knowledge_base_id(Id) –The unique identifier of the knowledge base that is connected to the data source.
-
data_source_id(Id) –The unique identifier of the data source that contains the documents.
-
document_identifiers(DocumentIdentifiers) –A list of objects, each of which contains information to identify a document for which to retrieve information.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.