WeKnora/internal/types
wizardchen 2984b21731 refactor: consolidate QA request handling and improve session service interface
- Introduced a new `QARequest` type to streamline parameters for KnowledgeQA and AgentQA service calls, replacing multiple parameters with a single structured request.
- Updated the `KnowledgeQA` and `AgentQA` methods in the session service interface to accept the new `QARequest` type, enhancing clarity and maintainability.
- Refactored the request parsing logic to utilize the new `buildQARequest` method, improving code organization and reducing redundancy.
- Implemented a new `resolveAgent` method to simplify custom agent resolution logic, enhancing readability and maintainability.

These changes improve the overall structure and usability of the QA request handling, facilitating easier updates and better code organization.
2026-03-16 02:26:47 +08:00
..
interfaces refactor: consolidate QA request handling and improve session service interface 2026-03-16 02:26:47 +08:00
agent.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
chat.go feat: Enhance chat message handling and agent completion events 2025-11-08 00:58:26 +08:00
chat_history_config.go feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +08:00
chat_manage.go feat: enhance multimodal image processing and session management 2026-03-16 02:26:47 +08:00
chunk.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
cleanup.go init commit 2025-08-05 15:08:07 +08:00
const.go feat: support NVIDIA model API 2026-03-13 18:14:08 +08:00
context_helpers.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
custom_agent.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
dataset.go init commit 2025-08-05 15:08:07 +08:00
docparser.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
embedding.go perf: 优化FAQ索引更新和删除性能 2026-01-14 17:30:04 +08:00
errors.go init commit 2025-08-05 15:08:07 +08:00
evaluation.go refactor: Update tenant ID handling across the application 2025-11-25 16:30:54 +08:00
event_bus.go refactor: Implement event-driven streaming and enhance session management 2025-11-07 22:41:41 +08:00
extract_graph.go feat: implement knowledge move functionality 2026-03-09 13:23:16 +08:00
faq.go feat: add matched question field to FAQ search results 2026-01-26 16:32:18 +08:00
graph.go feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00
json.go init commit 2025-08-05 15:08:07 +08:00
knowledge.go fix: handle empty metadata case in Knowledge struct 2026-03-02 21:21:49 +08:00
knowledgebase.go feat: update chunk size configurations for knowledge base processing 2026-03-05 18:14:14 +08:00
mcp.go feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
memory.go feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00
message.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
model.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
organization.go feat(api): integrate per-organization resource counts into organization listing 2026-02-09 11:40:25 +08:00
placeholder.go refactor: 调整智能体配置,增强智能体选择与状态管理 2025-12-26 21:31:02 +08:00
qa_request.go refactor: consolidate QA request handling and improve session service interface 2026-03-16 02:26:47 +08:00
retrieval_config.go feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +08:00
retriever.go feat: support weaviate vectordb for knowledge retrieve 2026-03-09 10:36:16 +08:00
search.go feat: optimize hybrid search by grouping targets and reusing query embeddings 2026-03-16 02:26:47 +08:00
session.go feat: 添加思考模式配置支持 2025-12-31 15:36:20 +08:00
tag.go perf: batch tag reference counting 2026-01-20 18:19:44 +08:00
tenant.go feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +08:00
user.go fix: improve auth error messages and unify username validation length 2026-03-15 23:59:50 +08:00
web_search.go feat: Update web search providers and enhance knowledge base management 2025-11-10 22:45:27 +08:00