@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
14 lines (13 loc) • 512 B
TypeScript
import type { IndexDocument, SearchIndex, SearchResult, SectionInfo } from "./types.js";
export declare class DocsSearch {
private miniSearch;
private documents;
private sections;
constructor();
loadIndex(indexData: SearchIndex): void;
search(query: string, limit?: number, section?: string): SearchResult[];
getPage(docPath: string): IndexDocument | undefined;
listSections(): SectionInfo[];
getBySection(section: string): IndexDocument[];
get documentCount(): number;
}