Refa: remove dataset language and validate dataset name length. (#5707)

### What problem does this PR solve?

#5686
#5702

### Type of change

- [x] Refactoring
This commit is contained in:
Kevin Hu
2025-03-06 17:08:28 +08:00
committed by GitHub
parent df9b7b2fe9
commit ff35c140dc
5 changed files with 9 additions and 33 deletions

View File

@ -82,7 +82,6 @@ RAGFlow.create_dataset(
avatar: str = "",
description: str = "",
embedding_model: str = "BAAI/bge-large-zh-v1.5",
language: str = "English",
permission: str = "me",
chunk_method: str = "naive",
parser_config: DataSet.ParserConfig = None
@ -108,12 +107,6 @@ Base64 encoding of the avatar. Defaults to `""`
A brief description of the dataset to create. Defaults to `""`.
##### language: `str`
The language setting of the dataset to create. Available options:
- `"English"` (default)
- `"Chinese"`
##### permission