Skip to content

KnowledgeCompiler

new KnowledgeCompiler(config): KnowledgeCompiler;
Parameter Type

config

KnowledgeCompilerConfig

KnowledgeCompiler

compile(documents, previousHashes?): Promise<CompilationResult>;

Compile a set of documents into structured markdown.

Parameter Type Description

documents

Document[]

Raw source documents to compile.

previousHashes?

Record<string, string>

Hashes from previous compilation for incremental detection.

Promise<CompilationResult>

Compilation result with the compiled markdown and metadata.