@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
13 lines (12 loc) • 616 B
TypeScript
/**
* @file Context relevancy scorer
* Evaluates how relevant retrieved context is to the query
*/
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
import { BaseLLMScorer } from "./baseLLMScorer.js";
export declare class ContextRelevancyScorer extends BaseLLMScorer {
constructor(config?: Partial<LLMScorerConfig>);
generatePrompt(input: ScorerInput): string;
parseResponse(response: string, _input: ScorerInput): Partial<ScoreResult>;
}
export declare function createContextRelevancyScorer(config?: Partial<LLMScorerConfig>): Promise<ContextRelevancyScorer>;