UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

26 lines (25 loc) 920 B
/** * Sentence-based Chunker * * Splits text based on sentence boundaries while respecting size limits. * Best for prose and natural language content where sentence integrity matters. */ import type { BaseChunkerConfig, Chunk, Chunker, ChunkerValidationResult, SentenceChunkerConfig } from "../../types/index.js"; /** * Sentence-aware chunker implementation * Splits text by sentences while respecting size constraints */ export declare class SentenceChunker implements Chunker { readonly strategy: "sentence"; private readonly defaultSentenceEnders; chunk(text: string, config?: SentenceChunkerConfig): Promise<Chunk[]>; /** * Split text into sentences based on sentence enders */ private splitIntoSentences; /** * Split a large sentence into smaller chunks */ private splitLargeSentence; validateConfig(config: BaseChunkerConfig): ChunkerValidationResult; }