@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
25 lines (24 loc) • 1.39 kB
TypeScript
/**
* Central default constants for the knowledge-grounding engine. Kept as
* runtime values (not type aliases) so they live outside src/lib/types/.
* Every number here is a starting value meant to be tuned through evaluation.
*/
import type { KnowledgeFieldWeights } from "../types/index.js";
/** Field weights for the lexical scorer: title/alias matches outrank body. */
export declare const DEFAULT_FIELD_WEIGHTS: KnowledgeFieldWeights;
/** How many scored candidates enter relationship expansion / assembly. */
export declare const DEFAULT_CANDIDATE_LIMIT = 24;
/** How many primary entries survive into the assembled context. */
export declare const DEFAULT_RESULT_LIMIT = 8;
/** Cap on relationship-expanded entries added after primary retrieval. */
export declare const DEFAULT_RELATION_LIMIT = 4;
/** Additive boost for an exact entry-id / configuration-key match (dominant). */
export declare const DEFAULT_EXACT_BOOST = 100;
/** Additive boost for an exact reviewed-alias phrase match (very high). */
export declare const DEFAULT_ALIAS_BOOST = 60;
/** Grounding-context token budget. */
export declare const DEFAULT_MAX_CONTEXT_TOKENS = 4000;
/** Hard ceiling for one grounding operation before it fails open. */
export declare const DEFAULT_TIMEOUT_MS = 800;
/** Bounded recent-turn window used to contextualize the query. */
export declare const DEFAULT_RECENT_TURNS = 4;