ragflow/api/apps
Stephen Hu 0b460a9a12
Fix: improve retrieval API (#6744)
### What problem does this PR solve?

Get the highlight parameter from the request to keep consistency with
the document

> 
- Method: POST
- URL: `/api/v1/retrieval`
- Headers:
  - `'content-Type: application/json'`
  - `'Authorization: Bearer <YOUR_API_KEY>'`
- Body:
  - `"question"`: `string`  
  - `"dataset_ids"`: `list[string]`  
  - `"document_ids"`: `list[string]`
  - `"page"`: `integer`  
  - `"page_size"`: `integer`  
  - `"similarity_threshold"`: `float`  
  - `"vector_similarity_weight"`: `float`  
  - `"top_k"`: `integer`  
  - `"rerank_id"`: `string`  
  - `"keyword"`: `boolean`  
  - `"highlight"`: `boolean`
>

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-04-24 09:29:00 +08:00
..
sdk Refa: knowledge_graph chunk method is deprecated (#7220) 2025-04-23 13:01:46 +08:00
__init__.py Refa: enlarge default max request body size. (#6088) 2025-03-14 15:21:08 +08:00
api_app.py Fix: improve retrieval API (#6744) 2025-04-24 09:29:00 +08:00
canvas_app.py Feat: add agent share team viewer (#6222) 2025-03-19 19:04:13 +08:00
chunk_app.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
conversation_app.py Refa: enhancement: enhance the prompt of related_question API (#6463) 2025-03-25 10:00:10 +08:00
dialog_app.py Support chat solo. (#5218) 2025-02-21 12:24:02 +08:00
document_app.py Fix: when remove document do not delete the file in storage if the source is not knowledge base (#7005) 2025-04-15 12:11:41 +08:00
file2document_app.py Fix: link to KB from filemanager. (#6530) 2025-03-26 09:41:14 +08:00
file_app.py Feat: improve '/mv' '/list' API performance (#6502) 2025-03-25 16:30:25 +08:00
kb_app.py [BREAKING CHANGE] GET to POST: enhance kb list capability (#7205) 2025-04-22 17:54:12 +08:00
langfuse_app.py Feat: add project_id and project_name to Langfuse API (#6481) 2025-03-25 10:36:34 +08:00
llm_app.py Fix: Hunyuan model adding error. (#6531) 2025-03-26 10:33:33 +08:00
system_app.py Feat: Add user registration toggle feature (#6327) 2025-03-21 09:38:15 +08:00
tenant_app.py Update team invite message (#4085) 2024-12-18 14:20:09 +08:00
user_app.py Feat: Add user registration toggle feature (#6327) 2025-03-21 09:38:15 +08:00