Skip to main content

updateSettings

client.knowledge.updateSettings(id: string, data: UpdateKnowledgeSettingsRequest): Promise<KnowledgeCollectionSettings>

Updates the settings for a knowledge collection.

Modifies chunking strategy, chunk size, overlap, and other processing parameters. Existing documents are not automatically re-chunked; use to apply new settings to existing content.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the collection
dataUpdateKnowledgeSettingsRequestYesThe settings to update

Returns

Promise<KnowledgeCollectionSettings> — A promise that resolves to the updated

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.knowledge.updateSettings('id', /* UpdateKnowledgeSettingsRequest */);
console.log(result);