mirror of
https://github.com/langgenius/dify.git
synced 2026-03-11 10:17:50 +08:00
Merge branch 'fix/import-old-dsl' into dev/plugin-deploy
This commit is contained in:
@ -47,6 +47,8 @@ class ParentChildIndexProcessor(BaseIndexProcessor):
|
||||
embedding_model_instance=kwargs.get("embedding_model_instance"),
|
||||
)
|
||||
for document in documents:
|
||||
if kwargs.get("preview") and len(all_documents) >= 10:
|
||||
return all_documents
|
||||
# document clean
|
||||
document_text = CleanProcessor.clean(document.page_content, process_rule)
|
||||
document.page_content = document_text
|
||||
|
||||
Reference in New Issue
Block a user