mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
Fix: support cross language for API. (#8946)
### What problem does this PR solve? Close #8943 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -1725,6 +1725,7 @@ Retrieves chunks from specified datasets.
|
||||
- `"rerank_id"`: `string`
|
||||
- `"keyword"`: `boolean`
|
||||
- `"highlight"`: `boolean`
|
||||
- `"cross_languages"`: `list[string]`
|
||||
|
||||
##### Request example
|
||||
|
||||
@ -1769,6 +1770,8 @@ curl --request POST \
|
||||
Specifies whether to enable highlighting of matched terms in the results:
|
||||
- `true`: Enable highlighting of matched terms.
|
||||
- `false`: Disable highlighting of matched terms (default).
|
||||
- `"cross_languages"`: (*Body parameter*) `list[string]`
|
||||
The languages that should be translated into, in order to achieve keywords retrievals in different languages.
|
||||
|
||||
#### Response
|
||||
|
||||
|
||||
@ -953,6 +953,10 @@ Specifies whether to enable highlighting of matched terms in the results:
|
||||
- `True`: Enable highlighting of matched terms.
|
||||
- `False`: Disable highlighting of matched terms (default).
|
||||
|
||||
##### cross_languages: `list[string]`
|
||||
|
||||
The languages that should be translated into, in order to achieve keywords retrievals in different languages.
|
||||
|
||||
#### Returns
|
||||
|
||||
- Success: A list of `Chunk` objects representing the document chunks.
|
||||
|
||||
Reference in New Issue
Block a user