UNPKG

@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

27 lines (26 loc) • 909 B
/** * LaTeX-aware Chunker * * Splits LaTeX documents based on structure (sections, environments, math). * Best for academic papers, scientific documents, and mathematical content. */ import type { BaseChunkerConfig, Chunk, Chunker, ChunkerValidationResult, LaTeXChunkerConfig } from "../../types/index.js"; /** * LaTeX-aware chunker implementation * Splits based on LaTeX structure (sections, environments) */ export declare class LaTeXChunker implements Chunker { readonly strategy: "latex"; private readonly defaultSplitEnvironments; private readonly mathEnvironments; chunk(text: string, config?: LaTeXChunkerConfig): Promise<Chunk[]>; /** * Split LaTeX by sectioning commands */ private splitBySections; /** * Split content that exceeds max size */ private splitContent; validateConfig(config: BaseChunkerConfig): ChunkerValidationResult; }