chore: skip unnecessary key checks prior to accessing a dictionary (#4497)
This commit is contained in:
parent
aa13d14019
commit
04ad46dd31
30 changed files with 45 additions and 44 deletions
|
|
@ -418,7 +418,7 @@ class IndexingRunner:
|
|||
if separator:
|
||||
separator = separator.replace('\\n', '\n')
|
||||
|
||||
if 'chunk_overlap' in segmentation and segmentation['chunk_overlap']:
|
||||
if segmentation.get('chunk_overlap'):
|
||||
chunk_overlap = segmentation['chunk_overlap']
|
||||
else:
|
||||
chunk_overlap = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue