From f554a13a795a6bedfd6e3517375f7b6990a045d0 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 31 Dec 2025 19:45:37 +0800 Subject: [PATCH] docs: sync changes to v0.2.8 changelog --- CHANGELOG.md | 51 +++++++++++++++++++ VERSION | 2 +- .../versioned/000007_embeddings_tag_id.up.sql | 23 +++++---- 3 files changed, 66 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 383c8a1e..9ee0494c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,56 @@ All notable changes to this project will be documented in this file. +## [0.2.8] - 2025-12-31 + +### 🚀 New Features +- **NEW**: Data Analyst Agent & Tools + - Added built-in Data Analyst agent + - Added DataSchema tool for retrieving schema from CSV/Excel files + - Support for agent file type restrictions +- **NEW**: Thinking Mode Support + - Added configuration support for Thinking mode + - Added Thinking field to Summary configuration +- **NEW**: Enhanced File & Storage Management + - Support listing MinIO buckets and permissions + - Configurable file upload size limits + - Full-text merge view mode +- **NEW**: Conversation Enhancements + - Added option to disable automatic title generation + - Enhanced KnowledgeQAStream parameters + - Support for streaming response types and tool calls +- **NEW**: System & Configuration + - Added `WEKNORA_VERSION` environment variable support + - APK mirror configuration support in Docker + - Enhanced chunking separator options + - FAQ two-level priority tag filtering + - Update index fields when batch updating tags + +### ⚡ Improvements +- **IMPROVED**: Agent & Model Handling + - Unified agent not ready message logic + - Optimized built-in agent configuration synchronization + - Removed model locking logic to allow free switching + - Enhanced model selection and error handling +- **IMPROVED**: Refactoring + - Simplified session creation request structure + - Converted knowledgeRefs to References type + - Refactored SSE stream setup + - Refactored bucket policy parsing logic + - Streamlined Docker package installation + +### 🐛 Bug Fixes +- **FIXED**: Localization placeholder display issues +- **FIXED**: Duplicate tag creation and stream response parsing +- **FIXED**: Missing WebSearchStateService in parallel search +- **FIXED**: Model list refresh on settings popup close +- **FIXED**: Asynq Redis DB configuration +- **FIXED**: Menu deletion logic and count updates +- **FIXED**: OpenAI API compatibility (exclude ChatTemplateKwargs) +- **FIXED**: Handled Nginx 413 (Payload Too Large) requests +- **FIXED**: Added existence check for embeddings table in tag_id migration + + ## [0.2.6] - 2025-12-29 ### 🚀 New Features @@ -459,6 +509,7 @@ All notable changes to this project will be documented in this file. - Docker Compose for quick startup and service orchestration. - MCP server support for integrating with MCP-compatible clients. +[0.2.7]: https://github.com/Tencent/WeKnora/tree/v0.2.7 [0.2.6]: https://github.com/Tencent/WeKnora/tree/v0.2.6 [0.2.5]: https://github.com/Tencent/WeKnora/tree/v0.2.5 [0.2.4]: https://github.com/Tencent/WeKnora/tree/v0.2.4 diff --git a/VERSION b/VERSION index 53a75d67..a45be462 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.6 +0.2.8 diff --git a/migrations/versioned/000007_embeddings_tag_id.up.sql b/migrations/versioned/000007_embeddings_tag_id.up.sql index 082624cd..d294c579 100644 --- a/migrations/versioned/000007_embeddings_tag_id.up.sql +++ b/migrations/versioned/000007_embeddings_tag_id.up.sql @@ -1,15 +1,20 @@ -- Add tag_id column to embeddings table for FAQ priority filtering DO $$ BEGIN - -- Add tag_id column if not exists - IF NOT EXISTS ( - SELECT 1 FROM information_schema.columns - WHERE table_name = 'embeddings' AND column_name = 'tag_id' - ) THEN - ALTER TABLE embeddings ADD COLUMN tag_id VARCHAR(36); - CREATE INDEX IF NOT EXISTS idx_embeddings_tag_id ON embeddings(tag_id); - RAISE NOTICE '[Migration 000007] Added tag_id column and index to embeddings table'; + -- Check if table exists first + IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'embeddings') THEN + -- Add tag_id column if not exists + IF NOT EXISTS ( + SELECT 1 FROM information_schema.columns + WHERE table_name = 'embeddings' AND column_name = 'tag_id' + ) THEN + ALTER TABLE embeddings ADD COLUMN tag_id VARCHAR(36); + CREATE INDEX IF NOT EXISTS idx_embeddings_tag_id ON embeddings(tag_id); + RAISE NOTICE '[Migration 000007] Added tag_id column and index to embeddings table'; + ELSE + RAISE NOTICE '[Migration 000007] tag_id column already exists in embeddings table, skipping'; + END IF; ELSE - RAISE NOTICE '[Migration 000007] tag_id column already exists in embeddings table, skipping'; + RAISE NOTICE '[Migration 000007] embeddings table does not exist, skipping'; END IF; END $$;