Skip to content

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

Update default language to English (#309)

Jin Hai0b2808f990d1
diff --git a/api/db/db_models.py b/api/db/db_models.py
index 845af9d974..b66badf648 100644
--- a/api/db/db_models.py
+++ b/api/db/db_models.py
@@ -386,7 +386,7 @@ class User(DataBaseModel, UserMixin):
max_length=32,
null=True,
help_text="English|Chinese",
- default="Chinese")
+ default="English")
color_schema = CharField(
max_length=32,
null=True,
@@ -695,7 +695,7 @@ class Dialog(DataBaseModel):
language = CharField(
max_length=32,
null=True,
- default="Chinese",
+ default="English",
help_text="English|Chinese")
llm_id = CharField(max_length=32, null=False, help_text="default llm ID")
llm_setting = JSONField(null=False, default={"temperature": 0.1, "top_p": 0.3, "frequency_penalty": 0.7,
diff --git a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
index d41af26970..0f4ba92010 100644
--- a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
+++ b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
@@ -57,7 +57,7 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
<Form.Item
name={'language'}
label={t('language')}
- initialValue={'Chinese'}
+ initialValue={'English'}
tooltip="coming soon"
style={{ display: 'none' }}
>