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: add finding, thesis, methodology types to Knowledge Tree sidebar

Ameisina39998d2f7ad1
diff --git a/src/components/layout/knowledge-tree.tsx b/src/components/layout/knowledge-tree.tsx
index 54fc694f..a693def9 100644
--- a/src/components/layout/knowledge-tree.tsx
+++ b/src/components/layout/knowledge-tree.tsx
@@ -1,6 +1,6 @@
import { useState, useEffect, useCallback } from "react"
import {
- FileText, Users, Lightbulb, BookOpen, HelpCircle, GitMerge, BarChart3, ChevronRight, ChevronDown, Layout, Globe, Trash2,
+ FileText, Users, Lightbulb, BookOpen, HelpCircle, GitMerge, BarChart3, TrendingUp, Target, ChevronRight, ChevronDown, Layout, Globe, Trash2,
} from "lucide-react"
import { ScrollArea } from "@/components/ui/scroll-area"
import { Button } from "@/components/ui/button"
@@ -24,8 +24,11 @@ const TYPE_CONFIG: Record<string, { icon: typeof FileText; label: string; color:
concept: { icon: Lightbulb, label: "Concepts", color: "text-purple-500", order: 2 },
source: { icon: BookOpen, label: "Sources", color: "text-orange-500", order: 3 },
synthesis: { icon: GitMerge, label: "Synthesis", color: "text-red-500", order: 4 },
- comparison: { icon: BarChart3, label: "Comparisons", color: "text-emerald-500",order: 5 },
- query: { icon: HelpCircle, label: "Queries", color: "text-green-500", order: 6 },
+ finding: { icon: TrendingUp, label: "Findings", color: "text-purple-500", order: 5 },
+ thesis: { icon: Target, label: "Theses", color: "text-rose-500", order: 6 },
+ methodology: { icon: BookOpen, label: "Methodologies",color: "text-teal-500", order: 7 },
+ comparison: { icon: BarChart3, label: "Comparisons", color: "text-emerald-500",order: 8 },
+ query: { icon: HelpCircle, label: "Queries", color: "text-green-500", order: 9 },
}
const DEFAULT_CONFIG = { icon: FileText, label: "Other", color: "text-muted-foreground", order: 99 }
@@ -329,6 +332,9 @@ function parsePageInfo(path: string, fileName: string, content: string): WikiPag
else if (path.includes("/queries/")) type = "query"
else if (path.includes("/comparisons/")) type = "comparison"
else if (path.includes("/synthesis/")) type = "synthesis"
+ else if (path.includes("/findings/")) type = "finding"
+ else if (path.includes("/thesis/")) type = "thesis"
+ else if (path.includes("/methodology/")) type = "methodology"
else if (fileName === "overview.md") type = "overview"
}