/** * Query-type classification for retrieval strategy adjustment. * * Classifies queries into types using lightweight heuristics (no LLM needed), * then returns scoring weight profiles that the retriever uses to adjust * keyword vs semantic vs recency balance. */ /** * Query types that map to different retrieval strategies. */ export type QueryType = 'recall' | 'synthesis' | 'recent' | 'decision'; /** * Scoring weights for each retrieval dimension. * Must sum to approximately 1.0. */ export interface RetrievalWeights { /** Weight for keyword match scoring */ keyword: number; /** Weight for semantic (embedding) similarity */ semantic: number; /** Weight for recency (newer messages score higher) */ recency: number; /** Whether to apply MMR diversity penalty for synthesis queries */ diversify: boolean; /** Candidate count multiplier (1.0 = standard, 1.5 = more, 0.5 = fewer) */ candidateMultiplier: number; } /** * Classify a query into a retrieval type using heuristic pattern matching. * Falls back to 'recall' (the most common case) when no pattern matches. */ export declare function classifyQuery(query: string): QueryType; /** * Get retrieval weights for a query type. */ export declare function getRetrievalWeights(queryType: QueryType): RetrievalWeights; //# sourceMappingURL=query-classifier.d.ts.map