MCPcopy Index your code
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/lib/chunkers/text-chunker.ts:36–40  ·  view source on GitHub ↗
(options: ChunkerOptions = {})

Source from the content-addressed store, hash-verified

34 ]
35
36 constructor(options: ChunkerOptions = {}) {
37 const resolved = resolveChunkerOptions(options)
38 this.chunkSize = resolved.chunkSize
39 this.chunkOverlap = resolved.chunkOverlap
40 }
41
42 private splitRecursively(text: string, separatorIndex = 0): string[] {
43 const tokenCount = estimateTokens(text)

Callers

nothing calls this directly

Calls 1

resolveChunkerOptionsFunction · 0.90

Tested by

no test coverage detected