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
fix: exclude structural pages (index/log/overview) from graph insights
nash_su47f7cb2409d8
diff --git a/src/lib/graph-insights.ts b/src/lib/graph-insights.tsindex cca7ff49..5f1f74c3 100644--- a/src/lib/graph-insights.ts+++ b/src/lib/graph-insights.ts@@ -37,12 +37,16 @@ export function findSurprisingConnections(const degreeMap = new Map(nodes.map((n) => [n.id, n.linkCount]))const maxDegree = Math.max(...nodes.map((n) => n.linkCount), 1)+ // Structural pages that link to everything — exclude from analysis+ const STRUCTURAL_IDS = new Set(["index", "log", "overview"])+const scored: SurprisingConnection[] = []for (const edge of edges) {const source = nodeMap.get(edge.source)const target = nodeMap.get(edge.target)if (!source || !target) continue+ if (STRUCTURAL_IDS.has(source.id) || STRUCTURAL_IDS.has(target.id)) continuelet score = 0const reasons: string[] = []@@ -157,8 +161,11 @@ export function detectKnowledgeGaps(}}+ const STRUCTURAL_IDS = new Set(["index", "log", "overview"])+const bridgeNodes = nodes.filter((n) => {+ if (STRUCTURAL_IDS.has(n.id)) return falseconst neighborComms = communityNeighbors.get(n.id)return neighborComms && neighborComms.size >= 3})