mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-05 19:37:29 +00:00
feat: add threshold status line to StatusCard with i18n support
- Add cosine_threshold, min_rerank_score, related_chunk_number to LightragStatus type
This commit is contained in:
parent
1613f4410e
commit
84b09aa5da
@ -51,6 +51,9 @@ export type LightragStatus = {
|
||||
max_async: number
|
||||
embedding_func_max_async: number
|
||||
embedding_batch_num: number
|
||||
cosine_threshold: number
|
||||
min_rerank_score: number
|
||||
related_chunk_number: number
|
||||
}
|
||||
update_status?: Record<string, any>
|
||||
core_version?: string
|
||||
|
||||
@ -18,6 +18,8 @@ const StatusCard = ({ status }: { status: LightragStatus | null }) => {
|
||||
<span className="truncate">{status.input_directory}</span>
|
||||
<span>{t('graphPanel.statusCard.summarySettings')}:</span>
|
||||
<span>{status.configuration.summary_language} / LLM summary on {status.configuration.force_llm_summary_on_merge.toString()} fragments</span>
|
||||
<span>{t('graphPanel.statusCard.threshold')}:</span>
|
||||
<span>cosine {status.configuration.cosine_threshold} / rerank_score {status.configuration.min_rerank_score} / max_related {status.configuration.related_chunk_number}</span>
|
||||
<span>{t('graphPanel.statusCard.maxParallelInsert')}:</span>
|
||||
<span>{status.configuration.max_parallel_insert}</span>
|
||||
</div>
|
||||
|
||||
@ -270,7 +270,8 @@
|
||||
"rerankerConfig": "تكوين إعادة الترتيب",
|
||||
"rerankerBindingHost": "نقطة نهاية إعادة الترتيب",
|
||||
"rerankerModel": "نموذج إعادة الترتيب",
|
||||
"lockStatus": "حالة القفل"
|
||||
"lockStatus": "حالة القفل",
|
||||
"threshold": "العتبة"
|
||||
},
|
||||
"propertiesView": {
|
||||
"editProperty": "تعديل {{property}}",
|
||||
|
||||
@ -270,7 +270,8 @@
|
||||
"rerankerConfig": "Reranker Configuration",
|
||||
"rerankerBindingHost": "Reranker Endpoint",
|
||||
"rerankerModel": "Reranker Model",
|
||||
"lockStatus": "Lock Status"
|
||||
"lockStatus": "Lock Status",
|
||||
"threshold": "Threshold"
|
||||
},
|
||||
"propertiesView": {
|
||||
"editProperty": "Edit {{property}}",
|
||||
|
||||
@ -270,7 +270,8 @@
|
||||
"rerankerConfig": "Configuration du reclassement",
|
||||
"rerankerBindingHost": "Point de terminaison de reclassement",
|
||||
"rerankerModel": "Modèle de reclassement",
|
||||
"lockStatus": "État des verrous"
|
||||
"lockStatus": "État des verrous",
|
||||
"threshold": "Seuil"
|
||||
},
|
||||
"propertiesView": {
|
||||
"editProperty": "Modifier {{property}}",
|
||||
|
||||
@ -270,7 +270,8 @@
|
||||
"rerankerConfig": "重排序配置",
|
||||
"rerankerBindingHost": "重排序端点",
|
||||
"rerankerModel": "重排序模型",
|
||||
"lockStatus": "锁状态"
|
||||
"lockStatus": "锁状态",
|
||||
"threshold": "阈值"
|
||||
},
|
||||
"propertiesView": {
|
||||
"editProperty": "编辑{{property}}",
|
||||
|
||||
@ -270,7 +270,8 @@
|
||||
"rerankerConfig": "重排序設定",
|
||||
"rerankerBindingHost": "重排序端點",
|
||||
"rerankerModel": "重排序模型",
|
||||
"lockStatus": "鎖定狀態"
|
||||
"lockStatus": "鎖定狀態",
|
||||
"threshold": "閾值"
|
||||
},
|
||||
"propertiesView": {
|
||||
"editProperty": "編輯{{property}}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user