UNPKG

@knath2000/codebase-indexing-mcp

Version:

MCP server for codebase indexing with Voyage AI embeddings and Qdrant vector storage

43 lines (42 loc) 1.06 kB
import type { Config } from '../types.js'; interface SearchResult { chunkId: string; score: number; filePath: string; startLine: number; endLine: number; content: string; chunkType?: string; language?: string; } export declare class LLMRerankerService { private apiKey; private model; private enabled; private timeoutMs; private requestDurations; private errorCount; private totalRequests; private maxDurationsToStore; private client; constructor(config: Config); rerank(query: string, searchResults: SearchResult[], limit?: number): Promise<{ results: SearchResult[]; reranked: boolean; }>; private callLLMAPI; private buildReRankingPrompt; private applyRanking; private recordDuration; getStats(): { enabled: boolean; model: string; totalRequests: number; errorCount: number; errorRate: number; avgDurationMs: number; timeoutMs: number; requestCount: number; }; } export {};