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

fix: use undirected graph for Louvain community detection to prevent mixed graph error

nash_sud3ba23029ace
diff --git a/src/lib/wiki-graph.ts b/src/lib/wiki-graph.ts
index 941287f3..94fd6cbf 100644
--- a/src/lib/wiki-graph.ts
+++ b/src/lib/wiki-graph.ts
@@ -36,7 +36,7 @@ function detectCommunities(
return { assignments: new Map(), communities: [] }
}
- const g = new Graph()
+ const g = new Graph({ type: "undirected" })
for (const node of nodes) {
g.addNode(node.id)
}