feat: Add minimum chunk size to SplitContentComponent's split_text method
This commit is contained in:
parent
4f0f8f3e0e
commit
d0039fae1e
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ class SplitContentComponent(Component):
|
|||
]
|
||||
|
||||
def split_text(self) -> List[Data]:
|
||||
# TODO: Add minimum chunk size - can be removed or merged
|
||||
data = self.data if isinstance(self.data, list) else [self.data]
|
||||
content_key = self.content_key
|
||||
separator = unescape_string(self.separator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue