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

feat: Deep Research results auto-ingest into wiki (entities, concepts, cross-refs)

nash_su015b71f5e63d
diff --git a/src/lib/deep-research.ts b/src/lib/deep-research.ts
index 57fde5dd..6d7993b5 100644
--- a/src/lib/deep-research.ts
+++ b/src/lib/deep-research.ts
@@ -1,5 +1,6 @@
import { webSearch } from "./web-search"
import { streamChat } from "./llm-client"
+import { autoIngest } from "./ingest"
import { writeFile, listDirectory } from "@/commands/fs"
import { useWikiStore, type LlmConfig, type SearchApiConfig } from "@/stores/wiki-store"
import { useResearchStore } from "@/stores/research-store"
@@ -192,6 +193,11 @@ async function executeResearch(
} catch {
// ignore
}
+
+ // Auto-ingest the research result to generate entities, concepts, cross-references
+ autoIngest(projectPath, `${projectPath}/${savedPath}`, llmConfig).catch((err) => {
+ console.error("Failed to auto-ingest research result:", err)
+ })
} catch (err) {
const message = err instanceof Error ? err.message : String(err)
useResearchStore.getState().updateTask(taskId, {