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
export const MIN_USER_CONCURRENCY = 1
export const MAX_USER_CONCURRENCY = 64
export function clampUserConcurrency(value: number, fallback = MIN_USER_CONCURRENCY): number {
const resolved = Number.isFinite(value) ? Math.floor(value) : Math.floor(fallback)
return Math.max(
MIN_USER_CONCURRENCY,
Math.min(MAX_USER_CONCURRENCY, resolved),
)
}