fix document could be None (#15818)

This commit is contained in:
Jyong 2025-03-14 16:40:01 +08:00 committed by GitHub
commit 84a866028a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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