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
feat: hide query nodes from knowledge graph
nash_su6677dd3057f5
diff --git a/src/lib/wiki-graph.ts b/src/lib/wiki-graph.tsindex 0c6cea1a..941287f3 100644--- a/src/lib/wiki-graph.ts+++ b/src/lib/wiki-graph.ts@@ -198,6 +198,16 @@ export async function buildWikiGraph(})}+ // Filter out query nodes (research results, saved chat answers) — they are+ // intermediate artifacts, not knowledge structure. The entities/concepts+ // extracted from them via auto-ingest are what belong in the graph.+ const HIDDEN_TYPES = new Set(["query"])+ for (const [id, node] of nodeMap) {+ if (HIDDEN_TYPES.has(node.type)) {+ nodeMap.delete(id)+ }+ }+// Count link referencesconst linkCounts = new Map<string, number>()for (const [id] of nodeMap) {