feat: implement knowledge search feature with enhanced configuration and UI
- Updated `config.yaml` to adjust conversation parameters for improved search performance. - Added a new `knowledgeSemanticSearch` API function for semantic search capabilities. - Introduced new SVG icons for search functionality. - Created `KnowledgeSearch.vue` component for the search interface, including query input and result display. - Enhanced menu and routing to support navigation to the new knowledge search page. - Updated internationalization files to include translations for the knowledge search feature. This update provides users with a powerful tool to perform semantic searches across knowledge bases, improving content discoverability.
This commit is contained in:
@@ -14,6 +14,7 @@ export default {
|
||||
newSession: "新会话",
|
||||
confirmLogout: "确定要退出登录吗?",
|
||||
systemInfo: "系统信息",
|
||||
knowledgeSearch: "知识搜索",
|
||||
},
|
||||
batchManage: {
|
||||
title: "管理对话记录",
|
||||
@@ -2724,4 +2725,29 @@ export default {
|
||||
unsupported: "该文件类型暂不支持在线预览",
|
||||
unsupportedHint: "请下载文件后使用本地应用查看",
|
||||
},
|
||||
knowledgeSearch: {
|
||||
title: "知识搜索",
|
||||
subtitle: "在知识库中进行语义检索,快速查找相关内容",
|
||||
placeholder: "输入搜索内容...",
|
||||
searchBtn: "搜索",
|
||||
selectKb: "选择知识库",
|
||||
allKb: "全部知识库",
|
||||
noResults: "未找到相关结果",
|
||||
resultCount: "共找到 {count} 条结果",
|
||||
score: "相关度",
|
||||
matchType: "匹配类型",
|
||||
matchTypeVector: "向量匹配",
|
||||
matchTypeKeyword: "关键词匹配",
|
||||
emptyHint: "输入关键词,在知识库中搜索相关内容片段",
|
||||
searching: "搜索中...",
|
||||
source: "来源",
|
||||
chunk: "个片段",
|
||||
expand: "展开",
|
||||
collapse: "收起",
|
||||
fileCount: "个文件",
|
||||
viewDetail: "查看详情",
|
||||
startChat: "进入对话",
|
||||
chatWithFile: "对话",
|
||||
newChatTitle: "搜索: {query}",
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user