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:
@@ -13,7 +13,8 @@ export default {
|
||||
batchManage: 'Batch Manage',
|
||||
newSession: 'New Chat',
|
||||
confirmLogout: 'Are you sure you want to logout?',
|
||||
systemInfo: 'System Information'
|
||||
systemInfo: 'System Information',
|
||||
knowledgeSearch: 'Knowledge Search',
|
||||
},
|
||||
batchManage: {
|
||||
title: 'Manage Conversations',
|
||||
@@ -2719,4 +2720,29 @@ export default {
|
||||
unsupported: 'This file type does not support online preview',
|
||||
unsupportedHint: 'Please download and open with a local application',
|
||||
},
|
||||
knowledgeSearch: {
|
||||
title: 'Knowledge Search',
|
||||
subtitle: 'Semantic search across knowledge bases to find relevant content',
|
||||
placeholder: 'Enter search query...',
|
||||
searchBtn: 'Search',
|
||||
selectKb: 'Select Knowledge Base',
|
||||
allKb: 'All Knowledge Bases',
|
||||
noResults: 'No results found',
|
||||
resultCount: '{count} results found',
|
||||
score: 'Relevance',
|
||||
matchType: 'Match Type',
|
||||
matchTypeVector: 'Vector Match',
|
||||
matchTypeKeyword: 'Keyword Match',
|
||||
emptyHint: 'Enter keywords to search for relevant content chunks in knowledge bases',
|
||||
searching: 'Searching...',
|
||||
source: 'Source',
|
||||
chunk: 'chunks',
|
||||
expand: 'Expand',
|
||||
collapse: 'Collapse',
|
||||
fileCount: 'files',
|
||||
viewDetail: 'View Detail',
|
||||
startChat: 'Start Chat',
|
||||
chatWithFile: 'Chat',
|
||||
newChatTitle: 'Search: {query}',
|
||||
},
|
||||
}
|
||||
@@ -14,6 +14,7 @@ export default {
|
||||
newSession: "새 세션",
|
||||
confirmLogout: "정말 로그아웃 하시겠습니까?",
|
||||
systemInfo: "시스템 정보",
|
||||
knowledgeSearch: "지식 검색",
|
||||
},
|
||||
batchManage: {
|
||||
title: "대화 관리",
|
||||
@@ -2795,4 +2796,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}',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -11,7 +11,8 @@ export default {
|
||||
batchManage: 'Пакетное управление',
|
||||
newSession: 'Новый диалог',
|
||||
confirmLogout: 'Вы уверены, что хотите выйти?',
|
||||
systemInfo: 'Информация о системе'
|
||||
systemInfo: 'Информация о системе',
|
||||
knowledgeSearch: 'Поиск знаний',
|
||||
},
|
||||
batchManage: {
|
||||
title: 'Управление диалогами',
|
||||
@@ -1863,4 +1864,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}',
|
||||
},
|
||||
}
|
||||
@@ -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