Syntax
api.createKnowledgeSource(params)
Description
Creates a Knowledge Source in a Knowledge Store. A Knowledge Source is a container for Knowledge Chunks to organize and manage your AI Agents’ knowledge. Parameters:params:CreateKnowledgeSourceParams— configuration object for the Knowledge Source. The object contains the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
name | String | Yes | The name of the Knowledge Source. Must be unique for each Knowledge Source. |
description | String | No | A description of the Knowledge Source. |
tags | Array | No | Tags associated with the Knowledge Source, used to filter searches. |
chunkCount | Number | Yes | The number of Knowledge Chunks in the Knowledge Source. |
Promise<{ knowledgeSourceId: string }> — a promise that resolves to an object containing the ID of the created Knowledge Source.