/** * Session Knowledge LLM Extractor (FR-A05) * * Reads session-knowledge-candidates.json (produced by Python preprocessor), * sends each cluster's representative segments to an LLM for knowledge extraction, * and writes results to the KIVO DB with multi-dimensional tags (FR-B05). */ import type { KnowledgeType, KnowledgeNature, KnowledgeFunction } from '../types/index.js'; export declare function cosineSimilarity(a: number[], b: number[]): number; export interface ExtractedItem { content: string; nature: string; function: string; domain: string; source: string; confidence: number; title?: string; tags?: string[]; } export interface SessionExtractOptions { candidatesPath: string; dryRun?: boolean; limit?: number; since?: string; noQualityGate?: boolean; } export interface SessionExtractResult { clustersProcessed: number; clustersSkipped: number; materialsCollected: number; knowledgeExtracted: number; knowledgeWritten: number; tokenEstimate: number; errors: string[]; } export declare const NATURE_TO_TYPE: Record; export declare function validateNature(v: string): KnowledgeNature | undefined; export declare function validateFunction(v: string): KnowledgeFunction | undefined; export declare function parseLlmResponse(raw: string): ExtractedItem[]; export declare function estimateTokens(text: string): number; export declare function extractSessionKnowledge(options: SessionExtractOptions): Promise; //# sourceMappingURL=session-knowledge-llm.d.ts.map