feat: 完成全量功能开发,包括前端管理后台与后端服务优化

此提交实现了完整的知识库管理系统:
1. 新增Vue3 + Antd Vue前端管理后台,包含登录、文档管理、检索、类目设置等完整页面
2. 重构后端LLM调用抽象层,支持Ollama与OpenAI兼容服务动态切换
3. 调整默认嵌入模型配置为本地bge-m3模式
4. 优化入库任务去重逻辑与缓存清理机制
5. 完善Docker镜像构建与docker-compose部署配置
6. 修复多项测试用例与兼容性问题
7. 新增运行时配置API,支持动态调整系统参数
This commit is contained in:
2026-07-31 12:05:25 +08:00
parent fdb664e546
commit 2ab8b56a01
52 changed files with 7030 additions and 171 deletions
+5 -1
View File
@@ -227,7 +227,11 @@ async def test_get_falls_back_to_redis_then_none() -> None:
def _text_hash(text: str) -> str:
return hashlib.sha256(text.encode("utf-8")).hexdigest()
"""构造与 Sha256DedupStrategy 一致的 dedup key
dedup 模块化后 key 形如 dedup:sha256:<sha256hex>(前缀 + 策略名 + hash)。
"""
return f"sha256:{hashlib.sha256(text.encode('utf-8')).hexdigest()}"
async def test_dedup_hit_reuses_old_doc_id_and_skips_pipeline() -> None: