Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

chanx1227c88c1d05
diff --git a/web/src/components/knowledge-base-item.tsx b/web/src/components/knowledge-base-item.tsx
index ed970179b6..311b3d99ca 100644
--- a/web/src/components/knowledge-base-item.tsx
+++ b/web/src/components/knowledge-base-item.tsx
@@ -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,
diff --git a/web/src/interfaces/database/dataset.ts b/web/src/interfaces/database/dataset.ts
index 9807d2a55a..369bda2cc2 100644
--- a/web/src/interfaces/database/dataset.ts
+++ b/web/src/interfaces/database/dataset.ts
@@ -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>;