Skip to main content

getStrategies

client.knowledge.getStrategies(): Promise<KnowledgeStrategy[]>

Retrieves all available chunking strategies.

Returns the list of chunking algorithms that can be used when processing documents (e.g., fixed-size, sentence-based, semantic).

Parameters

No parameters.

Returns

Promise<KnowledgeStrategy[]> — A promise that resolves to an array of descriptors

Example

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

const client = new CodeBoltClient();

const result = await client.knowledge.getStrategies();
console.log(result);