fix document could be None (#15818)

This commit is contained in:
Jyong
2025-03-14 16:40:01 +08:00
committed by GitHub
parent 10bd03611c
commit 84a866028a
2 changed files with 26 additions and 21 deletions

View File

@@ -276,6 +276,8 @@ class RetrievalService:
continue
dataset_document = dataset_documents[document_id]
if not dataset_document:
continue
if dataset_document.doc_form == IndexType.PARENT_CHILD_INDEX:
# Handle parent-child documents