WeKnora/internal/application/service/chat_pipline
wizardchen 1b8d7bd4de feat: add passage cleaning functionality for rerank model
- Introduced a new function `cleanPassageForRerank` to strip markdown and structural noise from text, enhancing semantic clarity for rerank models.
- Implemented comprehensive regex patterns to remove images, links, code blocks, LaTeX, HTML tags, and other formatting elements.
- Added unit tests to validate the cleaning process across various input scenarios, ensuring expected output consistency.
- Updated the `getEnrichedPassage` function to utilize the new cleaning method, improving the quality of text passed to the rerank model.

These changes significantly enhance the preprocessing of text data, leading to better performance in reranking tasks.
2026-03-05 18:14:14 +08:00
..
chat_completion.go feat: Enhance agent configuration and localization for web search prompts 2025-11-19 19:27:25 +08:00
chat_completion_stream.go feat: add thinking mode support for agents 2026-01-20 18:19:44 +08:00
chat_pipline.go refactor: Implement event-driven streaming and enhance session management 2025-11-07 22:41:41 +08:00
chat_pipline_test.go init commit 2025-08-05 15:08:07 +08:00
common.go feat: 添加思考模式配置支持 2025-12-31 15:36:20 +08:00
data_analysis.go fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
extract_entity.go feat(kbshare): enhance sharing functionality with soft-delete handling and shared access 2026-02-09 11:40:25 +08:00
filter_top_k.go feat: Revamp conversation configuration management and enhance localization 2025-11-18 23:18:43 +08:00
into_chat_message.go Merge branch 'custom_agent' 2025-12-29 17:01:23 +08:00
load_history.go refactor: 调整智能体配置,增强智能体选择与状态管理 2025-12-26 21:31:02 +08:00
memory.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
merge.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
query_expansion.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
rerank.go feat: add passage cleaning functionality for rerank model 2026-03-05 18:14:14 +08:00
rerank_clean_test.go feat: add passage cleaning functionality for rerank model 2026-03-05 18:14:14 +08:00
rewrite.go refactor: 调整智能体配置,增强智能体选择与状态管理 2025-12-26 21:31:02 +08:00
search.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
search_entity.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
search_parallel.go feat: add passage cleaning functionality for rerank model 2026-03-05 18:14:14 +08:00
stream_filter.go feat: Revamp conversation configuration management and enhance localization 2025-11-18 23:18:43 +08:00
tracing.go feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy 2025-12-03 17:45:21 +08:00