Skip to content

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

Fix: Set embedded models during form initialization. (#14889)

chanxbbb0798c41e7
diff --git a/web/src/pages/datasets/dataset-creating-dialog.tsx b/web/src/pages/datasets/dataset-creating-dialog.tsx
index 315e823c50..9f3a83d6be 100644
--- a/web/src/pages/datasets/dataset-creating-dialog.tsx
+++ b/web/src/pages/datasets/dataset-creating-dialog.tsx
@@ -106,7 +106,10 @@ export function InputForm({ onOk }: IModalProps<any>) {
if (parseType === ParseType.BuiltIn) {
form.setValue('pipeline_id', '');
}
- }, [parseType, form]);
+ if (tenantInfo?.embd_id) {
+ form.setValue('embedding_model', tenantInfo?.embd_id);
+ }
+ }, [parseType, form, tenantInfo]);
return (
<Form {...form}>