v0.1.5

Tencent/WeKnorav0.1.5Oct 20, 2025by begoniezhao

AI Summary

This release (v0.1.5) of WeKnora introduces multi-knowledgebase support with enhanced multi-data source search capabilities, along with tenant management improvements including API Key generation and management. The release also includes frontend security fixes (XSS, CSP), initialization wizard enhancements with VLM configuration validation, and DevOps improvements for Docker build scripts with cross-platform support.

Key Highlights

  • Multi-knowledgebase support with multi-data source search engine configuration
  • Tenant information page with storage quota display and API Key management (generation/copy)
  • Frontend security fixes: XSS vulnerability patches and API Key masking in UI
  • Initialization wizard improvements with stricter validation and VLM/OpenAI URL校验
  • Docker build script enhancements with cross-platform detection (amd64/arm64) and version info injection

New Features

  • Multi-knowledgebase operation support and management (UI and backend)
  • Tenant information management with storage quota and usage display
  • API Key auto-generation and update logic in backend (types.Tenant, tenantService.UpdateTenant)
  • New URL duplication error type with 409 conflict handling
  • MCP server file-based knowledge creation functionality
  • OCR/AVX support fixes and image parsing concurrency error fixes
  • Frontend route/login redirect fixes and file download content error fixes
  • Docreader service health check and model pre-fetch issue fixes
  • Makefile and build process improvements for CI LDFLAGS injection

Full Release Notes

概述

- 本次合并包含若干功能增强、UI/UX 改进、安全修复与错误修复,覆盖后端服务、前端界面、镜像构建和部署脚本等模块。
- 主要目标:多知识库支持、租户/账户增强、初始化流程优化、前端安全与体验改进,以及 DevOps 脚本和 Docker 镜像构建的健壮性提升。

Highlights

- Multi-knowledgebase 支持与多数据源检索优化(前端与后端协同改进)。
- 租户信息页与 API Key 管理功能增强(包括 API Key 生成与复制交互)。
- 初始化向导(Initialization)结构优化并加入更完善的验证与多模态(VLM)配置校验。
- 前端安全改进:修复 XSS、隐藏 UI 中的 API Key 等敏感信息。
- Docker / CI:改进镜像构建脚本与跨平台检测,增强构建信息注入(VERSION / COMMIT / BUILD_TIME / GO_VERSION)。

功能与增强

- 新增多知识库(Multi-knowledgebases)操作支持与管理(UI 与后端逻辑)。
- 增强租户信息管理,新增租户页面与更友好的存储配额、使用率展示(参见 TenantInfo.vue)。
- 初始化向导改进:更严格的表单验证、VLM/OpenAI 兼容 URL 校验及多模态文件上传预览与校验(参见 InitializationContent.vue)。
- 后端:API Key 自动生成与更新逻辑(见 types.Tenant 与 tenantService.UpdateTenant)。

UI / UX

- 重构设置页与初始化页面布局,优化按钮状态、加载与提示信息,上传/预览体验改进。
- 菜单组件增强:多知识库切换与上传前校验逻辑(参见 menu.vue)。
- 隐藏/保护敏感信息(例如 API Key)并增加复制交互提示(参见 TenantInfo.vue)。

安全修复

- 修复前端潜在 XSS 漏洞并增强输入校验与内容安全策略。
- UI 隐藏 API Key 并改进复制行为提示,提升信息泄露防护。

错误修复

- 修复 OCR/AVX 支持相关问题与图像解析并发错误。
- 修复前端路由/登录跳转问题与文件下载内容错误。
- 修复 docreader 服务健康检查与模型预取问题。

DevOps / 构建

- 改进镜像构建脚本,增强平台/架构检测(amd64 / arm64),并在构建时注入版本信息(见 get_version.sh 与 build_images.sh)。
- Makefile 与构建流程完善,便于 CI 注入 LDFLAGS(参见 Makefile)。
- 脚本与迁移工具(migrate)使用和文档完善(参见 migrate.sh)。

文档

- 更新 README 与多语言文档(EN/CN/JA)与 release/CHANGELOG(详见 CHANGELOG.md 与 README.md)。
- 补充 MCP server 使用说明与安装(见 mcp-server/INSTALL.md)。

开发者/内部 API 变更(可参考)

- 新增/变更后端系统信息响应结构:handler.GetSystemInfoResponse。
- 租户数据结构与 JSON 存储字段:types.Tenant。

## What's Changed
* fix(ui): fix xss in thinking by @lyingbug in https://github.com/Tencent/WeKnora/pull/308
* feat: 修复下载文件内容错误问题 by @xxx1111113 in https://github.com/Tencent/WeKnora/pull/310
* fix(ui): Fix CSP error by @lyingbug in https://github.com/Tencent/WeKnora/pull/311
* feat(ui): Add tenant info by @lyingbug in https://github.com/Tencent/WeKnora/pull/312
* chore(ui): Update Setting page by @lyingbug in https://github.com/Tencent/WeKnora/pull/316
* feat: Added multi-data source search engine configuration by @begoniezhao in https://github.com/Tencent/WeKnora/pull/319
* Support multi knowledgebases operation by @lyingbug in https://github.com/Tencent/WeKnora/pull/321
* fix(app): Update App LLM Model Check logic by @lyingbug in https://github.com/Tencent/WeKnora/pull/322
* fix(frontend): Fix Login Direct Page by @lyingbug in https://github.com/Tencent/WeKnora/pull/324
* chore(build): Optimize Makefile and Dockerfile.app build configuration by @begoniezhao in https://github.com/Tencent/WeKnora/pull/326
* chore(build): Optimize Docker build configuration and process by @begoniezhao in https://github.com/Tencent/WeKnora/pull/330
* chore(build): Optimize Docker build configuration and process by @begoniezhao in https://github.com/Tencent/WeKnora/pull/332
* chore: upspeed build docker by @begoniezhao in https://github.com/Tencent/WeKnora/pull/335
* feat: Added new URL duplication error type and 409 conflict handling by @begoniezhao in https://github.com/Tencent/WeKnora/pull/339
* chore: 将 PostgreSQL 镜像版本更新为 v0.18.9-pg17 by @begoniezhao in https://github.com/Tencent/WeKnora/pull/365
* [WIP] feat: 知识提取与图数据库 by @begoniezhao in https://github.com/Tencent/WeKnora/pull/343
* feat(MCP): MCP服务端添加使用文件创建知识的功能 by @QZero233 in https://github.com/Tencent/WeKnora/pull/361

## New Contributors
* @xxx1111113 made their first contribution in https://github.com/Tencent/WeKnora/pull/310
* @QZero233 made their first contribution in https://github.com/Tencent/WeKnora/pull/361

**Full Changelog**: https://github.com/Tencent/WeKnora/compare/v0.1.3...v0.1.5