mirror of https://github.com/langgenius/dify.git
Merge branch 'feat/rag-2' of https://github.com/langgenius/dify into feat/rag-2
This commit is contained in:
commit
b3dbf9fe94
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue