新增rag功能,支持用户上传、聊天提供文件夹或文件地址上传rag知识库,删除、查询个人知识库及暴露source给agent以获取所有知识来源;新增获取文件tree . /f工具

This commit is contained in:
minorQAQ committed 2026-05-27 17:39:55 +08:00
1 parent 95fefe96dd
commit 14788cad6a
36 files changed
+1238 -404

No files matched your search

+4 -8
View File
@@ -81,7 +81,7 @@
<section class="chat-shell">
<div class="chat-placeholder" id="chatPlaceholder">
<h3>开始对话</h3>
<p>输入文字,或上传<strong>图片</strong> / <strong>音频</strong> 后点击发送。</p>
<p>输入文字,或上传<strong>附件</strong> 后点击发送。</p>
<p class="muted">支持用户音频输入、助手文本/语音/双模输出、会话本地媒体持久化。</p>
</div>
<div class="chat-messages" id="chatMessages" hidden></div>
@@ -101,13 +101,9 @@
</button>
</div>
<div class="mm-actions">
<label class="btn btn-ghost file-btn">
图片
<input type="file" id="imageInput" accept="image/png,image/jpeg,image/jpg,image/gif,image/webp,image/bmp,.png,.jpg,.jpeg,.gif,.webp,.bmp" multiple hidden />
</label>
<label class="btn btn-ghost file-btn">
音频
<input type="file" id="audioInput" accept="audio/*,.wav,.mp3,.m4a,.flac,.ogg" hidden />
<label class="btn btn-ghost file-btn file-btn--icon-only" title="上传附件" aria-label="上传附件">
<img src="/image/附件.svg" alt="" aria-hidden="true" class="file-btn-icon" />
<input type="file" id="fileInput" multiple hidden />
</label>
<label class="output-mode-label" for="outputModeSelect">输出模式</label>
<select id="outputModeSelect" class="output-mode-select" aria-label="Agent 输出模式">