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
fix: remove 300-char snippet truncation, add table borders in research panel
nash_sue8a3ae279936
diff --git a/src/components/layout/research-panel.tsx b/src/components/layout/research-panel.tsxindex 71889bd3..55af44a7 100644--- a/src/components/layout/research-panel.tsx+++ b/src/components/layout/research-panel.tsx@@ -161,7 +161,26 @@ function SynthesisBlock({ synthesis, isStreaming }: { synthesis: string; isStrea</div>)}{answer && (- <ReactMarkdown remarkPlugins={[remarkGfm, remarkMath]} rehypePlugins={[rehypeKatex]}>+ <ReactMarkdown+ remarkPlugins={[remarkGfm, remarkMath]}+ rehypePlugins={[rehypeKatex]}+ components={{+ table: ({ children, ...props }) => (+ <div className="my-2 overflow-x-auto rounded border border-border">+ <table className="w-full border-collapse text-xs" {...props}>{children}</table>+ </div>+ ),+ thead: ({ children, ...props }) => (+ <thead className="bg-muted" {...props}>{children}</thead>+ ),+ th: ({ children, ...props }) => (+ <th className="border border-border/80 px-3 py-1.5 text-left font-semibold bg-muted" {...props}>{children}</th>+ ),+ td: ({ children, ...props }) => (+ <td className="border border-border/60 px-3 py-1.5" {...props}>{children}</td>+ ),+ }}+ >{answer}</ReactMarkdown>)}diff --git a/src/lib/web-search.ts b/src/lib/web-search.tsindex f128624d..46d99a43 100644--- a/src/lib/web-search.ts+++ b/src/lib/web-search.ts@@ -51,7 +51,7 @@ async function tavilySearch(return (data.results ?? []).map((r: { title: string; url: string; content: string }) => ({title: r.title ?? "Untitled",url: r.url ?? "",- snippet: r.content?.slice(0, 300) ?? "",+ snippet: r.content ?? "",source: new URL(r.url).hostname.replace("www.", ""),}))}