forked from github/onyx
handle empty doc batches (#5058)
This commit is contained in:
2
.vscode/launch.template.jsonc
vendored
2
.vscode/launch.template.jsonc
vendored
@@ -428,7 +428,7 @@
|
||||
},
|
||||
"args": [
|
||||
"--filename",
|
||||
"generated/openapi.json",
|
||||
"generated/openapi.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1146,7 +1146,7 @@ def connector_document_extraction(
|
||||
checkpoint = next_checkpoint
|
||||
|
||||
# below is all document processing task, so if no batch we can just continue
|
||||
if document_batch is None:
|
||||
if not document_batch:
|
||||
continue
|
||||
|
||||
# Clean documents and create batch
|
||||
|
||||
Reference in New Issue
Block a user