mem100x
Version:
⚡ The FASTEST MCP memory server ever built - 66k+ entities/sec with intelligent context detection
27 lines • 1.12 kB
TypeScript
/**
* Context Confidence Scoring System
* ML-like intelligence for automatic context detection
* Blazing fast pattern matching with detailed scoring
*/
import { ContextScore, DatabaseConfig } from './types.js';
export declare class ContextConfidenceScorer {
private contextConfigs;
private readonly WEIGHTS;
private readonly HIGH_CONFIDENCE;
private readonly MEDIUM_CONFIDENCE;
private readonly LOW_CONFIDENCE;
private contextPatterns;
private entityContextMap;
private recentContexts;
private readonly maxRecent;
constructor(contextConfigs: Record<string, DatabaseConfig>, entityContextMap: Map<string, string>);
private compilePatterns;
scoreContexts(data: any, availableContexts: string[]): ContextScore[];
private scoreSingleContext;
private calculateTemporalScore;
private updateRecentContexts;
getConfidenceLevel(confidence: number): string;
shouldPromptUser(topScore: ContextScore, secondScore?: ContextScore): boolean;
updateEntityContext(entityName: string, context: string): void;
}
//# sourceMappingURL=context-confidence.d.ts.map