Skip to main content
Use client.knowledgeBases to create, populate, search, and attach knowledge bases to Agents.

Create a knowledge base

Upload and monitor documents

Indexing is asynchronous. Poll documents until their status is indexed or failed. Document responses include chunk_count, char_count, and error_message.

Attach to an Agent

For the equivalent Studio CLI workflow, see the Knowledge Base section in the CLI overview.