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

perf: bound persistent file history

nash_su87e8d2e92c12
diff --git a/src-tauri/src/commands/file_history.rs b/src-tauri/src/commands/file_history.rs
index c3bf5ae1..39a23966 100644
--- a/src-tauri/src/commands/file_history.rs
+++ b/src-tauri/src/commands/file_history.rs
@@ -6,8 +6,8 @@ use chrono::Utc;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
-const MAX_HISTORY_CONTENT_BYTES: usize = 2 * 1024 * 1024;
-const MAX_ENTRIES_PER_FILE: usize = 50;
+const MAX_HISTORY_CONTENT_BYTES: usize = 512 * 1024;
+const MAX_ENTRIES_PER_FILE: usize = 30;
static HISTORY_LOCK: Mutex<()> = Mutex::new(());
#[derive(Debug, Clone, Serialize, Deserialize)]