Skip to content

Commit 275e595

Browse files
committed
feat: add additional context variables to document split node
1 parent 8c802c3 commit 275e595

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def execute(self, document_list, knowledge_id, split_strategy, paragraph_title_r
8585
paragraph_list += results
8686

8787
self.context['paragraph_list'] = paragraph_list
88+
self.context['limit'] = limit
89+
self.context['chunk_size'] = chunk_size
90+
self.context['with_filter'] = with_filter
91+
self.context['patterns'] = patterns
92+
self.context['split_strategy'] = split_strategy
8893

8994
return NodeResult({'paragraph_list': paragraph_list}, {})
9095

@@ -160,4 +165,9 @@ def get_details(self, index: int, **kwargs):
160165
'status': self.status,
161166
'err_message': self.err_message,
162167
'paragraph_list': self.context.get('paragraph_list', []),
168+
'limit': self.context.get('limit'),
169+
'chunk_size': self.context.get('chunk_size'),
170+
'with_filter': self.context.get('with_filter'),
171+
'patterns': self.context.get('patterns'),
172+
'split_strategy': self.context.get('split_strategy'),
163173
}

0 commit comments

Comments
 (0)