1
0
forked from github/onyx

handle empty doc batches (#5058)

This commit is contained in:
Evan Lohn
2025-07-22 15:35:59 -07:00
committed by GitHub
parent ff2a4c8723
commit b4eaa81d8b
2 changed files with 2 additions and 2 deletions

View File

@@ -428,7 +428,7 @@
},
"args": [
"--filename",
"generated/openapi.json",
"generated/openapi.json"
]
},
{

View File

@@ -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