MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / createChunks

Method createChunks

packages/baseai/src/utils/memory/chunker.ts:74–77  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

72 }
73
74 async createChunks(content: string): Promise<string[]> {
75 const chunks = await this.splitText(content);
76 return chunks.map(chunk => chunk.replace(/\0/g, ''));
77 }
78}
79
80export class RecursiveCharacterTextSplitter extends TextSplitter {

Callers 1

generateEmbeddingsFunction · 0.80

Calls 1

splitTextMethod · 0.95

Tested by

no test coverage detected