📚 知识库

AI {{ aiHealth ? (aiHealth.status==='disabled' ? '已关闭' : (aiHealth.ok ? '正常' : '异常')) : (status.ai_enabled ? '已连接' : '已关闭') }} WebDAV {{ status.webdav_configured ? '已配置' : '未配置' }}
原始资料: {{ status.compile?.raw_files || 0 }} Wiki 页面: {{ status.compile?.wiki_pages || 0 }}
⚠️ AI 服务异常:{{ aiHealth.detail }} 关键词搜索不受影响;AI 编译与 AI 问答暂不可用,新同步的文档将延迟入库。修复后点「重新检测」。
加载中...
此目录为空
{{ item.type==='directory' ? '📁' : '📄' }} {{ item.name }} {{ item.count }} 项 {{ item.title || '' }}

{{ viewingFile.name }}

🤖 AI 回答
✅ 本次回答来自新知识,已自动保存到知识库 {{ aiSavedPath }}
{{ aiAnswer }}
依据: {{ s }}
共 {{ searchResults.length }} 条结果
{{ idx + 1 }}
{{ r.path }}
未找到相关内容

🌐 网页导入

{{ importUrlResult.success ? '✅ ' + importUrlResult.title : '❌ ' + importUrlResult.error }}

📎 文件上传

拖拽文件到此处或点击上传
上传中...
{{ fileUploadResult.success ? '✅ 已上传: ' + fileUploadResult.file : '❌ 上传失败' }}

🎬 音视频导入(自动转录)

上传音频(mp3/aac/wav 等)或视频文件,自动转录为文字
处理中(提取音频 + 转录文字,约 1-3 分钟)...

📦 从 WebDAV 选择文件导入

❌ 尚未配置 WebDAV,请先到「⚙️ 管理」填写 WebDAV 地址/账号/密码并保存。
{{ item.isdir ? '📁' : (item.exists ? '✅' : '📄') }} {{ item.name }} {{ formatSize(item.size) }} 目录 已存在 可导入
{{ wdError || (wdItems.length === 0 ? '此目录为空' : '') }}
加载中...
已选 {{ Object.keys(wdSelected).length }}
{{ wdImportResult.message }}
{{ d.status === 'imported' ? '✅' : (d.status === 'exists' ? '⏭️' : '❌') }} {{ d.name }} {{ d.message || d.error }}
{{ f.path }} {{ f.error }}

📊 系统状态

AI 配置{{ status.ai_configured ? '✅' : '❌' }}
WebDAV 配置{{ status.webdav_configured ? '✅' : '❌' }}
原始资料{{ status.compile?.raw_files || 0 }} 个
已处理{{ status.compile?.processed_files || 0 }} 个
Wiki 页面{{ status.compile?.wiki_pages || 0 }} 个
上次编译{{ status.compile?.last_compile || '从未' }}

🔧 手动操作

⚙️ WebDAV 设置

{{ webdavTestResult.success ? '✅ ' + webdavTestResult.message : '❌ ' + webdavTestResult.message }}
✅ 设置已保存

🤖 AI 配置

启用 AI 服务 {{ settings.ai_enabled ? '已开启(会调用 AI,消耗积分)' : '已关闭(不调用 AI,节省费用)' }}
⏸️ AI 编译 / AI 问答已暂停,仅使用本地关键词搜索。需要时打开开关并保存设置。
✅ {{ aiModels.length }} 个模型可选({{ aiModelManual ? '当前为手动输入模式' : '展开下拉即可选择' }}) ⚠️ {{ aiModelsError }} 点「刷新模型清单」拉取可选模型
{{ aiHealth.ok ? '✅ ' : '❌ ' }}{{ aiHealth.detail }} ({{ aiHealth.model }} · 检测于 {{ aiHealth.checked_at }})
✅ 设置已保存

🩺 体检结果

✅ 一切正常

💀 死链 ({{ healthResult.dead_links.length }})

{{ d }}

🏝️ 孤立页面 ({{ healthResult.orphan_pages.length }})

{{ o }}

⚠️ 内容冲突 ({{ healthResult.conflicts.length }})

{{ c }}
{{ toast }}