ragflow/api/apps
Kung Quang 32d5885b68
Fix api reference empty bug (#1655)
### What problem does this PR solve?

fix api reference empty bug
```
for chunk_i in answer['reference'].get('chunks',[]):
                   ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
```
```
return np.array([d["relevance_score"] for d in res["results"]]), res["meta"]["tokens"]["input_tokens"]+res["meta"]["tokens"]["output_tokens"]
                                                   ~~~^^^^^^^^^^^
KeyError: 'results'
```
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2024-07-24 18:02:22 +08:00
..
__init__.py add password reset function by extending the Flask command (#1632) 2024-07-23 14:02:41 +08:00
api_app.py Fix api reference empty bug (#1655) 2024-07-24 18:02:22 +08:00
canvas_app.py fix generate error (#1590) 2024-07-18 14:33:30 +08:00
chunk_app.py fix delete selected chunks display wrong (#1612) 2024-07-19 16:25:50 +08:00
conversation_app.py add self-rag (#1070) 2024-06-06 11:13:39 +08:00
dataset_api.py Add ParsertType Audio (#1637) 2024-07-22 19:17:30 +08:00
dialog_app.py add self-rag (#1070) 2024-06-06 11:13:39 +08:00
document_app.py Add ParsertType Audio (#1637) 2024-07-22 19:17:30 +08:00
file2document_app.py fix doc number miss-match issue (#822) 2024-05-17 15:35:09 +08:00
file_app.py fix file preview in file management (#1151) 2024-06-14 10:33:59 +08:00
kb_app.py fix bug about removing KB. (#839) 2024-05-20 09:23:57 +08:00
llm_app.py add support for LM Studio (#1663) 2024-07-24 12:46:43 +08:00
system_app.py fix redis no such key (#1647) 2024-07-23 14:00:31 +08:00
user_app.py add rerank model (#969) 2024-05-29 16:50:02 +08:00