Skip to content

Commit 3a83472

Browse files
committed
feat: add source_file_id to document split and knowledge write nodes
1 parent 97bd98e commit 3a83472

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _process_split_result(
101101
'source_url': file_name,
102102
}
103103
item['name'] = file_name
104+
item['source_file_id'] = source_file_id
104105
item['paragraphs'] = item.pop('content', [])
105106

106107
for paragraph in item['paragraphs']:

apps/application/flow/step_node/knowledge_write_node/impl/base_knowledge_write_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class KnowledgeWriteParamSerializer(serializers.Serializer):
3838
source=_('document name'))
3939
meta = serializers.DictField(required=False)
4040
paragraphs = ParagraphInstanceSerializer(required=False, many=True, allow_null=True)
41+
source_file_id = serializers.UUIDField(required=False, allow_null=True)
4142

4243

4344
def convert_uuid_to_str(obj):

0 commit comments

Comments
 (0)