UNPKG

chonkie

Version:

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

12 lines (11 loc) • 399 B
/** Refinery clients for Chonkie API. */ import { CloudClient } from "./base"; import { Chunk } from "../types/base"; export interface EmbeddingsRefineryConfig { embeddingModel: string; } export declare class EmbeddingsRefinery extends CloudClient { private readonly config; constructor(apiKey: string, config: EmbeddingsRefineryConfig); refine(chunks: Chunk[]): Promise<Chunk[]>; }