Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript
489 B
Raw Blame
import {
  computeStructuralLint,
  type StructuralLintConfig,
  type StructuralLintPage,
} from "./lint-structural-core"

interface WorkerRequest {
  pages: StructuralLintPage[]
  config: StructuralLintConfig
}

self.onmessage = (event: MessageEvent<WorkerRequest>) => {
  const findings = computeStructuralLint(event.data.pages, (completed, total) => {
    self.postMessage({ type: "progress", completed, total })
  }, event.data.config)
  self.postMessage({ type: "done", findings })
}