MCPcopy Create free account
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/lib/chunkers/sentence-chunker.ts:20–25  ·  view source on GitHub ↗
(options: SentenceChunkerOptions = {})

Source from the content-addressed store, hash-verified

18 private readonly minSentencesPerChunk: number
19
20 constructor(options: SentenceChunkerOptions = {}) {
21 const resolved = resolveChunkerOptions(options)
22 this.chunkSize = resolved.chunkSize
23 this.chunkOverlap = resolved.chunkOverlap
24 this.minSentencesPerChunk = options.minSentencesPerChunk ?? 1
25 }
26
27 /** Splits on sentence boundaries while avoiding abbreviations, decimals, and ellipses. */
28 private splitSentences(text: string): string[] {

Callers

nothing calls this directly

Calls 1

resolveChunkerOptionsFunction · 0.90

Tested by

no test coverage detected