/** * Enricher - Add embeddings and tags to patterns */ import type { MetaPattern } from '../core/schema.js'; /** * Compute TF-IDF based embedding (simple version) * * @param text - Text to embed * @returns Embedding vector */ export declare function computeSimpleEmbedding(text: string): number[]; /** * Extract tags from pattern content * * @param pattern - Pattern * @returns Array of tags */ export declare function extractTags(pattern: MetaPattern): string[]; /** * Enrich pattern with embedding and tags * * @param pattern - Pattern to enrich * @returns Enriched pattern */ export declare function enrichPattern(pattern: MetaPattern): MetaPattern; /** * Enrich multiple patterns * * @param patterns - Patterns to enrich * @returns Enriched patterns */ export declare function enrichPatterns(patterns: MetaPattern[]): MetaPattern[]; /** * Compute cosine similarity between two embedding vectors * * @param a - Vector A * @param b - Vector B * @returns Similarity score [0, 1] */ export declare function cosineSimilarity(a: number[], b: number[]): number; //# sourceMappingURL=enricher.d.ts.map