UNPKG

chonkie

Version:

🦛 CHONK your texts in TS with Chonkie!✨The no-nonsense lightweight and efficient chunking library.

17 lines (16 loc) • 572 B
/** Late chunker client for Chonkie API. */ import { CloudClient, ChunkerInput } from "./base"; import { LateChunk } from "../types/late"; export interface LateChunkerConfig { embeddingModel?: string; chunkSize?: number; recipe?: string; lang?: string; minCharactersPerChunk?: number; } export declare class LateChunker extends CloudClient { private readonly config; constructor(apiKey: string, config?: LateChunkerConfig); chunk(input: ChunkerInput): Promise<LateChunk[]>; chunkBatch(inputs: ChunkerInput[]): Promise<LateChunk[][]>; }