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),
|
type=instance.get('type', KnowledgeType.WEB),
|
||||||
scope=self.data.get('scope', KnowledgeScope.WORKSPACE),
|
scope=self.data.get('scope', KnowledgeScope.WORKSPACE),
|
||||||
folder_id=folder_id,
|
folder_id=folder_id,
|
||||||
|
workspace_id=self.data.get('workspace_id'),
|
||||||
embedding_model_id=instance.get('embedding'),
|
embedding_model_id=instance.get('embedding'),
|
||||||
meta={
|
meta={
|
||||||
'source_url': instance.get('source_url'),
|
'source_url': instance.get('source_url'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user