/** * LLM-based knowledge extraction from document chunks. * * Uses an LlmProvider to extract structured knowledge: * facts, decisions, preferences, procedures, relationships. * * The extraction prompt is the most critical part of the ingestion engine. * It needs to produce genuinely useful, self-contained memories — not noise. */ import type { LlmProvider } from "../types"; import type { ChunkResult, ExtractionResult } from "./types"; export interface ExtractionOptions { /** Minimum confidence to keep an extracted item */ readonly minConfidence: number; } /** @deprecated Use ExtractionOptions instead */ export type ExtractorConfig = ExtractionOptions; export declare const DEFAULT_EXTRACTOR_CONFIG: ExtractionOptions; /** * Extract knowledge from a single chunk using an LLM. */ export declare function extractFromChunk(chunk: ChunkResult, sourceTitle: string | null, provider: LlmProvider, opts?: ExtractionOptions): Promise; /** * Extract knowledge from all chunks in a document. */ export declare function extractFromChunks(chunks: readonly ChunkResult[], sourceTitle: string | null, provider: LlmProvider, onChunkDone?: (chunkIndex: number, itemCount: number) => void, opts?: ExtractionOptions): Promise; //# sourceMappingURL=extractor.d.ts.map