Skip to content

ListKnowledgeBaseDocuments

Source: src/AWS/Bedrock/ListKnowledgeBaseDocuments.ts

Runtime binding for bedrock-agent:ListKnowledgeBaseDocuments — list the documents tracked in the bound DataSource together with their ingestion status.

The binding grants the function bedrock:ListKnowledgeBaseDocuments scoped to the data source’s parent knowledge base.

// init
const listDocuments = yield* Bedrock.ListKnowledgeBaseDocuments(dataSource);
// runtime
const { documentDetails } = yield* listDocuments({ maxResults: 25 });