ragflow/api/apps
Myth d38f995ba6
fix: Fix for Empty Reference Array Causing Errors (#1652)
### What problem does this PR solve?

This pull request addresses an issue where the reference is an empty
array ([]) in specific cases, leading to errors in the application. When
the reference is empty, the code attempts to call the get method on a
list, resulting in the following error message:
``` json
{"retcode": 500, "retmsg": "'list' object has no attribute 'get'", "data": {"answer": "**ERROR**: 'list' object has no attribute 'get'", "reference": []}}
```

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2024-07-25 14:14:42 +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: Fix for Empty Reference Array Causing Errors (#1652) 2024-07-25 14:14:42 +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