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: Save to Wiki now triggers auto-ingest + graph update
nash_su4be84df00c17
diff --git a/src/components/chat/chat-message.tsx b/src/components/chat/chat-message.tsxindex eddec531..01604058 100644--- a/src/components/chat/chat-message.tsx+++ b/src/components/chat/chat-message.tsx@@ -228,12 +228,22 @@ function SaveToWikiButton({ content, visible }: { content: string; visible: boolconst logEntry = `- ${date}: Saved query page \`${fileName}\`\n`await writeFile(logPath, logContent.trimEnd() + "\n" + logEntry)- // Refresh file tree+ // Refresh file tree and update graphconst tree = await listDirectory(project.path)setFileTree(tree)+ useWikiStore.getState().bumpDataVersion()setSaved(true)setTimeout(() => setSaved(false), 2000)++ // Auto-ingest the saved query to generate entities/concepts/cross-references+ const llmConfig = useWikiStore.getState().llmConfig+ if (llmConfig.apiKey || llmConfig.provider === "ollama") {+ const { autoIngest } = await import("@/lib/ingest")+ autoIngest(project.path, filePath, llmConfig).catch((err) =>+ console.error("Failed to auto-ingest saved query:", err)+ )+ }} catch (err) {console.error("Failed to save to wiki:", err)} finally {