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
298 B
Raw Blame
const NATURAL_COLLATOR = new Intl.Collator(undefined, {
  numeric: true,
  sensitivity: "base",
})

export function naturalCompare(a: string, b: string): number {
  const natural = NATURAL_COLLATOR.compare(a, b)
  if (natural !== 0) return natural
  if (a === b) return 0
  return a < b ? -1 : 1
}