mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Add top_k for create_chat and update_chat api (#4294)
### What problem does this PR solve? Add top_k for create_chat and update_chat api #4157 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
This commit is contained in:
@ -1389,6 +1389,7 @@ curl --request POST \
|
||||
- All the variables in 'System' should be curly bracketed.
|
||||
- The default value is `[{"key": "knowledge", "optional": true}]`.
|
||||
- `"rerank_model"`: `string` If it is not specified, vector cosine similarity will be used; otherwise, reranking score will be used.
|
||||
- `top_k`: `int` Refers to the process of reordering or selecting the top-k items from a list or set based on a specific ranking criterion. Default to 1024.
|
||||
- `"empty_response"`: `string` If nothing is retrieved in the dataset for the user's question, this will be used as the response. To allow the LLM to improvise when nothing is found, leave this blank.
|
||||
- `"opener"`: `string` The opening greeting for the user. Defaults to `"Hi! I am your assistant, can I help you?"`.
|
||||
- `"show_quote`: `boolean` Indicates whether the source of text should be displayed. Defaults to `true`.
|
||||
|
||||
Reference in New Issue
Block a user