fix document could be None (#15818)
This commit is contained in:
parent
10bd03611c
commit
84a866028a
2 changed files with 26 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue