Create Knowledge Base
Creates a knowledge base: a container for documents that AI agents search for context.
The embedding model is fixed at creation and cannot be changed afterwards, because changing it would invalidate every vector already stored. Chunking settings can be changed later, but they apply at index time only - material already indexed is never re-chunked.
Body
Request body for creating a new knowledge base.
The name of the knowledge base. Should be unique within your organization and clearly identify its purpose.
1A description of the knowledge base explaining its contents and purpose. AI agents read this to decide when the knowledge base is relevant.
Primary language of the material in this knowledge base. Deliberately a free-form string rather than an enum: an unrecognised value is accepted and stored rather than rejected.
How source material is split before embedding. Applied at index time, so it affects material ingested after it is set.
fixed_size, semantic, sentence, paragraph, recursive Vector database backing this knowledge base's index.
pinecone, qdrant, weaviate, milvus, pgvector Embedding model used to vectorise chunks. Immutable: it is accepted here and never on update, because changing it would invalidate every vector already stored. Pick it up front.
text-embedding-3-small, text-embedding-3-large Target chunk size. Applied at index time; nothing already indexed is re-chunked.
100 <= x <= 4096Overlap between consecutive chunks. Applied at index time.
0 <= x <= 500A noun phrase rather than a sentence, describing how an assistant built on this knowledge base introduces itself - for example 'a customer-care voice assistant for Acme Bank'. Defaults to a value derived from the name, capped at 280 characters. Treated as identity-and-tone data in the user message, never as system instructions. It affects only answer generation, a capability this reference does not document, so no endpoint documented here is affected by setting it.
280Response
Knowledge base created.
Response model for a knowledge base.
Unique identifier of the knowledge base.
The name of the knowledge base.
UTC timestamp indicating when this knowledge base was created.
UTC timestamp indicating when this knowledge base was last modified.
Description of the knowledge base's purpose and contents.
Primary language of the material in this knowledge base.
Number of documents stored in this knowledge base.
Chunking strategy currently in effect for new material.
fixed_size, semantic, sentence, paragraph, recursive Vector database backing this knowledge base's index.
pinecone, qdrant, weaviate, milvus, pgvector Embedding model in use. Note the asymmetry with the create request, which defaults to text-embedding-3-large: this schema's default is text-embedding-3-small because knowledge bases created before the field existed are on small. Read the value off the response rather than assuming it.
text-embedding-3-small, text-embedding-3-large Target chunk size for new material.
Overlap between consecutive chunks.
How an assistant built on this knowledge base introduces itself.
Aggregate processing state of the knowledge base's documents.
processing, completed, failed Workspace this knowledge base belongs to.
Organization this knowledge base belongs to, resolved from your token.
User this knowledge base belongs to, resolved from your token.

