fix(knowledge-base): display embedding model friendly name in datasetlabel (#17842)

This commit is contained in:
chanx
2026-08-05 15:57:04 +08:00
committed by GitHub
parent 0a444343b9
commit 1227c88c1d
2 changed files with 8 additions and 1 deletions

View File

@@ -97,7 +97,13 @@ export function useDisableDifferenceEmbeddingDataset(name: string) {
suffix: (
<section className="flex gap-2">
<DatasetLabel text={item.nickname} />
<DatasetLabel text={item.embedding_model} />
<DatasetLabel
text={
item.embedding_model_name
? item.embedding_model_name
: item.embedding_model
}
/>
</section>
),
value: item.id,

View File

@@ -22,6 +22,7 @@ export interface IDataset {
description?: string;
document_count: number;
embedding_model: string;
embedding_model_name?: string;
size?: number;
graphrag_task_finish_at: string;
graphrag_task_id: Nullable<string>;