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

28 lines (27 loc) 831 B
/** * Recursive Chunker * * Recursively splits text using an ordered list of separators. * Tries each separator in order until chunks are small enough. */ import type { Chunk, ChunkerConfig, ChunkingStrategy } from "../../types/index.js"; import { BaseChunker } from "./BaseChunker.js"; /** * Recursive Chunker * * Splits content using ordered separators, recursively breaking * down text until chunks meet size requirements. */ export declare class RecursiveChunker extends BaseChunker { readonly strategy: ChunkingStrategy; getDefaultConfig(): ChunkerConfig; protected doChunk(content: string, config: ChunkerConfig): Promise<Chunk[]>; /** * Recursively split text using separators */ private recursiveSplit; /** * Apply overlap between chunks */ private applyOverlap; }