/** * Hybrid Search - Combines Vector and TF-IDF Search */ import type { CodebaseIndexer } from './indexer.js'; /** * Hybrid Search Options */ export interface HybridSearchOptions { readonly limit?: number; readonly minScore?: number; readonly vectorWeight?: number; readonly includeContent?: boolean; readonly fileExtensions?: string[]; readonly pathFilter?: string; readonly excludePaths?: string[]; } /** * Hybrid Search Result */ export interface HybridSearchResult { readonly path: string; readonly score: number; readonly method: 'vector' | 'tfidf' | 'hybrid'; readonly matchedTerms?: string[]; readonly similarity?: number; readonly content?: string; readonly chunkType?: string; readonly startLine?: number; readonly endLine?: number; readonly language?: string; } /** * Hybrid search combining vector and TF-IDF * Returns weighted combination of both approaches */ export declare function hybridSearch(query: string, indexer: CodebaseIndexer, options?: HybridSearchOptions): Promise; /** * Semantic search (vector only) * Convenience method for pure semantic search */ export declare function semanticSearch(query: string, indexer: CodebaseIndexer, options?: Omit): Promise; /** * Keyword search (TF-IDF only) * Convenience method for pure keyword search */ export declare function keywordSearch(query: string, indexer: CodebaseIndexer, options?: Omit): Promise; //# sourceMappingURL=hybrid-search.d.ts.map