Merge branch 'feat/rag-2' of https://github.com/langgenius/dify into feat/rag-2

This commit is contained in:
twwu
2025-08-29 16:20:54 +08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -202,6 +202,7 @@ class DatasourceNode(Node):
related_id=upload_file.id,
size=upload_file.size,
storage_key=upload_file.key,
url=upload_file.source_url,
)
variable_pool.add([self._node_id, "file"], file_info)
# variable_pool.add([self.node_id, "file"], file_info.to_dict())

View File

@@ -345,7 +345,7 @@ def _build_from_datasource_file(
)
return File(
id=mapping.get("id"),
id=mapping.get("datasource_file_id"),
tenant_id=tenant_id,
filename=datasource_file.name,
type=file_type,
@@ -356,6 +356,7 @@ def _build_from_datasource_file(
mime_type=datasource_file.mime_type,
size=datasource_file.size,
storage_key=datasource_file.key,
url=datasource_file.source_url,
)