/** * Knowledge Base Search * * Supports keyword, semantic (vector), and hybrid search modes. * Applies applicability context filtering to boost/demote results. * Logs all queries to the QueryLog table for analytics. * * All queries are scoped by kbId for multi-tenant isolation. */ import type { SearchParams, SearchResult, KnowledgeEntry, ApplicabilityContext } from '../types.ts'; /** * Search the knowledge base. * * @param params - Search parameters including kbId, query, mode, tags, limit, context * @returns Scored and sorted search results */ export declare function search(params: SearchParams): Promise; /** * Filter and re-score results based on applicability context. * * If the caller provides their environment context, results that match get a * score boost, while results that specify a different scope get a score penalty * (but are NOT hidden). Context dimensions are generic key-value pairs — each * KB defines its own (e.g., product version, tier, region, platform). */ export declare function filterByApplicability(results: SearchResult[], context: ApplicabilityContext): SearchResult[]; /** * List entries without search scoring. * * Returns entries sorted by updatedAt (newest first), with no relevance * scoring. Used for browse mode where there's no search query. */ export declare function listEntries(kbId: string, tags?: string[], limit?: number): Promise[]>; //# sourceMappingURL=search.d.ts.map