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
433 B
Raw Blame
import type { WikiState } from "@/stores/wiki-store"
import { isStandaloneView } from "./research-panel-nav"

export function getAppLayoutVisibility(
  activeView: WikiState["activeView"],
  researchPanelOpen: boolean,
): { showLeftPanel: boolean; hasRightPanel: boolean } {
  const isStandalone = isStandaloneView(activeView)
  return {
    showLeftPanel: !isStandalone,
    hasRightPanel: !isStandalone && researchPanelOpen,
  }
}