mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: add workspace_id to knowledge retrieval
This commit is contained in:
parent
a3e2e8b548
commit
dad309193a
|
|
@ -538,6 +538,7 @@ class KnowledgeSerializer(serializers.Serializer):
|
|||
type=instance.get('type', KnowledgeType.WEB),
|
||||
scope=self.data.get('scope', KnowledgeScope.WORKSPACE),
|
||||
folder_id=folder_id,
|
||||
workspace_id=self.data.get('workspace_id'),
|
||||
embedding_model_id=instance.get('embedding'),
|
||||
meta={
|
||||
'source_url': instance.get('source_url'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue