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

@ -178,7 +178,6 @@ Creates a dataset.
- `"name"`: `string`
- `"avatar"`: `string`
- `"description"`: `string`
- `"language"`: `string`
- `"embedding_model"`: `string`
- `"permission"`: `string`
- `"chunk_method"`: `string`
@ -214,11 +213,6 @@ curl --request POST \
- `"description"`: (*Body parameter*), `string`
A brief description of the dataset to create.
- `"language"`: (*Body parameter*), `string`
The language setting of the dataset to create. Available options:
- `"English"` (default)
- `"Chinese"`
- `"embedding_model"`: (*Body parameter*), `string`
The name of the embedding model to use. For example: `"BAAI/bge-zh-v1.5"`

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