@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
20 lines (19 loc) • 571 B
TypeScript
/**
* Sentence Chunker
*
* Splits text by sentence boundaries for semantically meaningful chunks.
*/
import type { Chunk, ChunkerConfig, ChunkingStrategy } from "../../types/index.js";
import { BaseChunker } from "./BaseChunker.js";
/**
* Sentence Chunker
*/
export declare class SentenceChunker extends BaseChunker {
readonly strategy: ChunkingStrategy;
getDefaultConfig(): ChunkerConfig;
protected doChunk(content: string, config: ChunkerConfig): Promise<Chunk[]>;
/**
* Split content into sentences
*/
private splitIntoSentences;
}