mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 22:51:24 +00:00
fix(ChatKnowledge): Fix knowledge command load bug (#1767)
Co-authored-by: huangjh131 <14678508+huangjh131@user.noreply.gitee.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
@@ -460,7 +460,7 @@ class Service(BaseService[KnowledgeSpaceEntity, SpaceServeRequest, SpaceServeRes
|
||||
)
|
||||
knowledge = None
|
||||
if not space.domain_type or (
|
||||
space.domain_type == BusinessFieldType.NORMAL.value
|
||||
space.domain_type.lower() == BusinessFieldType.NORMAL.value.lower()
|
||||
):
|
||||
knowledge = KnowledgeFactory.create(
|
||||
datasource=doc.content,
|
||||
|
Reference in New Issue
Block a user