Skip to content

SentenceSplitterParams

SentenceSplitterParams = object

Defined in: packages/core/src/schema/params.ts:6

Parameters for the SentenceSplitter

chunkSize: number

Defined in: packages/core/src/schema/params.ts:8

The token chunk size for each chunk


chunkOverlap: number

Defined in: packages/core/src/schema/params.ts:10

The token overlap of each chunk when splitting


separator: string

Defined in: packages/core/src/schema/params.ts:12

Default separator for splitting into words


paragraphSeparator: string

Defined in: packages/core/src/schema/params.ts:14

Separator between paragraphs


secondaryChunkingRegex: string

Defined in: packages/core/src/schema/params.ts:16

Backup regex for splitting into sentences


extraAbbreviations: string[]

Defined in: packages/core/src/schema/params.ts:18

Extra abbreviations to consider while splitting into sentences