mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix: Fix the case where documents were created when summary_index_setting was disabled. Fix the problem that summaries of chunks without text content is always in English.
This commit is contained in:
@ -174,6 +174,10 @@ class RagPipelineTransformService:
|
|||||||
else:
|
else:
|
||||||
dataset.retrieval_model = knowledge_configuration.retrieval_model.model_dump()
|
dataset.retrieval_model = knowledge_configuration.retrieval_model.model_dump()
|
||||||
|
|
||||||
|
# Copy summary_index_setting from dataset to knowledge_index node configuration
|
||||||
|
if dataset.summary_index_setting:
|
||||||
|
knowledge_configuration.summary_index_setting = dataset.summary_index_setting
|
||||||
|
|
||||||
knowledge_configuration_dict.update(knowledge_configuration.model_dump())
|
knowledge_configuration_dict.update(knowledge_configuration.model_dump())
|
||||||
node["data"] = knowledge_configuration_dict
|
node["data"] = knowledge_configuration_dict
|
||||||
return node
|
return node
|
||||||
|
|||||||
Reference in New Issue
Block a user