mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -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"`
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user