feat: implement chat history and retrieval settings

- Added new API endpoints for managing chat history configuration and retrieval settings, allowing tenants to enable message indexing and configure search parameters.
- Introduced new Vue components for ChatHistorySettings and RetrievalSettings, providing a user-friendly interface for managing these configurations.
- Updated localization files to include new settings descriptions and labels in multiple languages.
- Enhanced the KnowledgeSearch view to support searching across both knowledge bases and chat history, improving the overall search functionality.

These changes significantly enhance the application's capabilities in managing and retrieving chat history, contributing to a more robust user experience.
This commit is contained in:
wizardchen
2026-03-06 21:06:10 +08:00
committed by lyingbug
parent c516d1f9bd
commit 1fb2bedd2b
27 changed files with 2755 additions and 199 deletions
+48 -3
View File
@@ -14,7 +14,7 @@ export default {
newSession: "새 세션",
confirmLogout: "정말 로그아웃 하시겠습니까?",
systemInfo: "시스템 정보",
knowledgeSearch: "지식 검색",
knowledgeSearch: "검색",
collapseSidebar: "사이드바 접기",
expandSidebar: "사이드바 펼치기",
logoutSuccess: "로그아웃되었습니다",
@@ -541,6 +541,45 @@ export default {
saveFailed: "설정 저장 실패: {message}",
},
},
chatHistorySettings: {
title: "메시지 관리",
description: "채팅 기록 지식베이스를 구성하여 대화 메시지를 자동으로 벡터화 인덱싱하여 시맨틱 검색을 지원합니다",
enableLabel: "메시지 인덱싱 활성화",
enableDescription: "활성화하면 새 대화 메시지가 자동으로 지식베이스에 인덱싱되어 벡터 검색을 지원합니다",
embeddingModelLabel: "Embedding 모델",
embeddingModelDescription: "메시지 벡터화에 사용할 Embedding 모델을 선택하세요",
embeddingModelLocked: "이미 인덱싱된 메시지가 있어 Embedding 모델을 변경할 수 없습니다 (인덱스 데이터 초기화 필요)",
statsTitle: "인덱스 통계",
statsIndexedMessages: "인덱싱된 메시지",
statsNotConfigured: "메시지 인덱싱 미설정",
statsNotConfiguredDesc: "활성화하고 Embedding 모델을 선택하면 대화 메시지가 자동으로 벡터화 인덱싱됩니다",
toasts: {
saveSuccess: "메시지 관리 설정이 저장되었습니다",
saveFailed: "설정 저장 실패: {message}",
loadFailed: "설정 로드 실패: {message}",
},
},
retrievalSettings: {
title: "검색 설정",
description: "전역 검색 파라미터를 설정합니다. 지식베이스 검색과 메시지 검색이 이 설정을 공유합니다",
embeddingTopKLabel: "벡터 검색 Top K",
embeddingTopKDescription: "벡터 검색에서 반환하는 최대 결과 수",
vectorThresholdLabel: "벡터 유사도 임계값",
vectorThresholdDescription: "벡터 검색의 최소 유사도 점수 (0-1, 높을수록 정확)",
keywordThresholdLabel: "키워드 매칭 임계값",
keywordThresholdDescription: "키워드 검색의 최소 매칭 점수 (0-1)",
rerankTopKLabel: "Rerank Top K",
rerankTopKDescription: "재정렬 후 유지되는 최대 결과 수",
rerankThresholdLabel: "Rerank 임계값",
rerankThresholdDescription: "재정렬의 최소 점수 임계값 (0-1)",
rerankModelLabel: "Rerank 모델",
rerankModelDescription: "검색 결과 재정렬에 사용할 모델을 선택하세요",
rerankModelRequired: "Rerank 모델을 선택하세요. 검색 기능에 이 모델이 필요합니다.",
toasts: {
saveSuccess: "검색 설정이 저장되었습니다",
saveFailed: "설정 저장 실패: {message}",
},
},
graphSettings: {
title: "지식 그래프 설정",
description:
@@ -2991,9 +3030,12 @@ export default {
unsupportedHint: '파일을 다운로드하여 로컬 앱으로 열어주세요',
},
knowledgeSearch: {
title: '지식 검색',
subtitle: '지식베이스에서 시맨틱 검색으로 관련 콘텐츠를 빠르게 찾으세요',
title: '검색',
subtitle: '지식베이스와 대화 기록에서 시맨틱 검색으로 관련 콘텐츠를 빠르게 찾으세요',
tabKnowledge: '지식 검색',
tabMessages: '메시지 검색',
placeholder: '검색어를 입력하세요...',
messagePlaceholder: '대화 기록 검색...',
searchBtn: '검색',
selectKb: '지식베이스 선택',
allKb: '모든 지식베이스',
@@ -3003,7 +3045,10 @@ export default {
matchType: '매칭 유형',
matchTypeVector: '벡터 매칭',
matchTypeKeyword: '키워드 매칭',
untitledSession: '제목 없는 대화',
matchCount: '개 매칭',
emptyHint: '키워드를 입력하여 지식베이스에서 관련 콘텐츠를 검색하세요',
messageEmptyHint: '키워드를 입력하여 대화 기록을 검색하세요',
searching: '검색 중...',
source: '출처',
chunk: '개 청크',