feat: Add system information fields and localization for new engines
- Introduced new fields for keyword index engine, vector store engine, and graph database engine in the system info API response. - Updated localization files in English, Russian, and Chinese to include labels and descriptions for the new system information fields. - Enhanced the SystemInfo.vue component to display the new engine information in the settings view.
This commit is contained in:
@@ -5,6 +5,9 @@ export interface SystemInfo {
|
||||
commit_id?: string
|
||||
build_time?: string
|
||||
go_version?: string
|
||||
keyword_index_engine?: string
|
||||
vector_store_engine?: string
|
||||
graph_database_engine?: string
|
||||
}
|
||||
|
||||
export interface ToolDefinition {
|
||||
|
||||
@@ -1089,6 +1089,12 @@ export default {
|
||||
buildTimeDescription: 'Time when the system was built',
|
||||
goVersionLabel: 'Go Version',
|
||||
goVersionDescription: 'Go language version used by the backend',
|
||||
keywordIndexEngineLabel: 'Keyword Index Engine',
|
||||
keywordIndexEngineDescription: 'Currently used keyword index engine',
|
||||
vectorStoreEngineLabel: 'Vector Store Engine',
|
||||
vectorStoreEngineDescription: 'Currently used vector store engine',
|
||||
graphDatabaseEngineLabel: 'Graph Database Engine',
|
||||
graphDatabaseEngineDescription: 'Currently used graph database engine',
|
||||
unknown: 'Unknown',
|
||||
messages: {
|
||||
fetchFailed: 'Failed to fetch system information',
|
||||
|
||||
@@ -626,6 +626,12 @@ export default {
|
||||
buildTimeDescription: 'Время, когда система была собрана',
|
||||
goVersionLabel: 'Версия Go',
|
||||
goVersionDescription: 'Версия языка Go, используемая backend',
|
||||
keywordIndexEngineLabel: 'Движок индексации ключевых слов',
|
||||
keywordIndexEngineDescription: 'Используемый в настоящее время движок индексации ключевых слов',
|
||||
vectorStoreEngineLabel: 'Движок векторного хранилища',
|
||||
vectorStoreEngineDescription: 'Используемый в настоящее время движок векторного хранилища',
|
||||
graphDatabaseEngineLabel: 'Движок графовой базы данных',
|
||||
graphDatabaseEngineDescription: 'Используемый в настоящее время движок графовой базы данных',
|
||||
unknown: 'Неизвестно',
|
||||
messages: {
|
||||
fetchFailed: 'Не удалось получить информацию о системе',
|
||||
|
||||
@@ -708,6 +708,12 @@ export default {
|
||||
buildTimeDescription: "系统构建的时间",
|
||||
goVersionLabel: "Go 版本",
|
||||
goVersionDescription: "后端使用的 Go 语言版本",
|
||||
keywordIndexEngineLabel: "关键词索引引擎",
|
||||
keywordIndexEngineDescription: "当前使用的关键词索引引擎",
|
||||
vectorStoreEngineLabel: "向量存储引擎",
|
||||
vectorStoreEngineDescription: "当前使用的向量存储引擎",
|
||||
graphDatabaseEngineLabel: "图数据库引擎",
|
||||
graphDatabaseEngineDescription: "当前使用的图数据库引擎",
|
||||
unknown: "未知",
|
||||
messages: {
|
||||
fetchFailed: "获取系统信息失败",
|
||||
|
||||
@@ -60,6 +60,39 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Keyword Index Engine -->
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<label>{{ $t('system.keywordIndexEngineLabel') }}</label>
|
||||
<p class="desc">{{ $t('system.keywordIndexEngineDescription') }}</p>
|
||||
</div>
|
||||
<div class="setting-control">
|
||||
<span class="info-value">{{ systemInfo?.keyword_index_engine || $t('system.unknown') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Vector Store Engine -->
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<label>{{ $t('system.vectorStoreEngineLabel') }}</label>
|
||||
<p class="desc">{{ $t('system.vectorStoreEngineDescription') }}</p>
|
||||
</div>
|
||||
<div class="setting-control">
|
||||
<span class="info-value">{{ systemInfo?.vector_store_engine || $t('system.unknown') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Graph Database Engine -->
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<label>{{ $t('system.graphDatabaseEngineLabel') }}</label>
|
||||
<p class="desc">{{ $t('system.graphDatabaseEngineDescription') }}</p>
|
||||
</div>
|
||||
<div class="setting-control">
|
||||
<span class="info-value">{{ systemInfo?.graph_database_engine || $t('system.unknown') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user