fix bug about reload knowledgebase configuration reloading (#210)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

Issue link:#[[Link the issue
here](https://github.com/infiniflow/ragflow/issues/209)]

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
KevinHuSh
2024-04-03 11:00:50 +08:00
committed by GitHub
parent 2673be8bc1
commit 392e515c3f
5 changed files with 12 additions and 8 deletions

View File

@ -79,7 +79,7 @@ def list():
return get_json_result(data=res)
except Exception as e:
if str(e).find("not_found") > 0:
return get_json_result(data=False, retmsg=f'Index not found!',
return get_json_result(data=False, retmsg=f'No chunk found!',
retcode=RetCode.DATA_ERROR)
return server_error_response(e)
@ -262,6 +262,6 @@ def retrieval_test():
return get_json_result(data=ranks)
except Exception as e:
if str(e).find("not_found") > 0:
return get_json_result(data=False, retmsg=f'Index not found!',
return get_json_result(data=False, retmsg=f'No chunk found! Check the chunk status please!',
retcode=RetCode.DATA_ERROR)
return server_error_response(e)

View File

@ -44,7 +44,8 @@ class KnowledgebaseService(CommonService):
def get_detail(cls, kb_id):
fields = [
cls.model.id,
Tenant.embd_id,
#Tenant.embd_id,
cls.embd_id,
cls.model.avatar,
cls.model.name,
cls.model.language,