mirror of https://github.com/langgenius/dify.git
Merge branch 'feat/r2' into deploy/rag-dev
This commit is contained in:
commit
b525bc2b81
|
|
@ -50,7 +50,7 @@ from models.workflow import (
|
|||
Workflow,
|
||||
WorkflowNodeExecutionTriggeredFrom,
|
||||
WorkflowRun,
|
||||
WorkflowType,
|
||||
WorkflowType, WorkflowNodeExecutionModel,
|
||||
)
|
||||
from services.dataset_service import DatasetService
|
||||
from services.datasource_provider_service import DatasourceProviderService
|
||||
|
|
@ -911,7 +911,7 @@ class RagPipelineService:
|
|||
pipeline: Pipeline,
|
||||
run_id: str,
|
||||
user: Account | EndUser,
|
||||
) -> list[WorkflowNodeExecution]:
|
||||
) -> list[WorkflowNodeExecutionModel]:
|
||||
"""
|
||||
Get workflow run node execution list
|
||||
"""
|
||||
|
|
@ -930,7 +930,7 @@ class RagPipelineService:
|
|||
|
||||
# Use the repository to get the node executions with ordering
|
||||
order_config = OrderConfig(order_by=["index"], order_direction="desc")
|
||||
node_executions = repository.get_by_workflow_run(
|
||||
node_executions = repository.get_db_models_by_workflow_run(
|
||||
workflow_run_id=run_id,
|
||||
order_config=order_config,
|
||||
triggered_from=WorkflowNodeExecutionTriggeredFrom.RAG_PIPELINE_RUN,
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ class RagPipelineDslService:
|
|||
nodes = graph.get("nodes", [])
|
||||
dataset_id = None
|
||||
for node in nodes:
|
||||
if node.get("data", {}).get("type") == "knowledge_index":
|
||||
if node.get("data", {}).get("type") == "knowledge-index":
|
||||
knowledge_configuration = KnowledgeConfiguration(**node.get("data", {}))
|
||||
if (
|
||||
dataset
|
||||
|
|
|
|||
Loading…
Reference in New Issue