/** * LocalNLIProvider — HTTP client for the NLI cross-encoder service. * * Talks to a local Python service running cross-encoder/nli-roberta-base * (default: http://127.0.0.1:11435). Falls back gracefully if the * service is unavailable. */ import type { NLIProvider, NLIResult, NLILabel } from '../core/nli.js'; export declare class LocalNLIProvider implements NLIProvider { readonly name = "nli-http"; private readonly baseUrl; constructor(options?: { baseUrl?: string; }); classify(premise: string, hypothesis: string): Promise; classifyBatch(pairs: Array<{ premise: string; hypothesis: string; }>): Promise; /** * Check if the NLI service is available. * Returns false if the service is down — callers can fall back to LLM. */ isAvailable(): Promise; } /** * Map NLI labels to the contradiction evaluation vocabulary used by cortex. * * NLI "contradiction" → cortex "genuine" * NLI "entailment" → cortex "complementary" * NLI "neutral" → cortex "tension" (may or may not be meaningful) */ export declare function nliToCortexVerdict(label: NLILabel, scores: Record): 'genuine' | 'tension' | 'complementary' | 'unrelated'; //# sourceMappingURL=nli-http.d.ts.map