WeKnora/internal/application/service/chat_pipline
wizardchen fc92b494b0 feat: optimize hybrid search by grouping targets and reusing query embeddings
- Enhanced the concurrent search functionality to group search targets by their embedding model, allowing for a single computation of query embeddings per model.
- Implemented batch fetching of knowledge base records to improve efficiency and reduce redundant API calls.
- Updated the HybridSearch method to support multiple knowledge base IDs, enabling combined retrieval for full-KB targets and improving overall search performance.
- Added a new GetQueryEmbedding method to compute embeddings for queries, facilitating reuse across multiple knowledge bases sharing the same model.

These changes significantly enhance the performance and efficiency of the knowledge search process, reducing API calls and improving response times.
2026-03-16 02:26:47 +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: enhance multimodal image processing and session management 2026-03-16 02:26:47 +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 feat: enhance multimodal image processing and session management 2026-03-16 02:26:47 +08:00
load_history.go feat: enhance multimodal image processing and session management 2026-03-16 02:26:47 +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: add ListChunksByParentIDs method and enhance chunk merging logic 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: enhance multimodal support and image handling 2026-03-16 02:26:47 +08:00
rerank_clean_test.go feat: add passage cleaning functionality for rerank model 2026-03-05 18:14:14 +08:00
rewrite.go feat: enhance multimodal image processing and session management 2026-03-16 02:26:47 +08:00
search.go feat: optimize hybrid search by grouping targets and reusing query embeddings 2026-03-16 02:26:47 +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: implement image upload and multimodal support 2026-03-16 02:26:47 +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