mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-10 13:45:44 +08:00
@@ -760,7 +760,14 @@ async def run_dataflow(task: dict):
|
||||
assert e, "Pipeline log not found."
|
||||
dsl = pipeline_log.dsl
|
||||
dataflow_id = pipeline_log.pipeline_id
|
||||
pipeline = Pipeline(dsl, tenant_id=task["tenant_id"], doc_id=doc_id, task_id=task_id, flow_id=dataflow_id)
|
||||
pipeline = Pipeline(
|
||||
dsl,
|
||||
tenant_id=task["tenant_id"],
|
||||
doc_id=doc_id,
|
||||
task_id=task_id,
|
||||
flow_id=dataflow_id,
|
||||
language=task.get("language"),
|
||||
)
|
||||
rag_tokenizer.tokenizer.set_language(task.get("language", "English"))
|
||||
chunks = await pipeline.run(file=task["file"]) if task.get("file") else await pipeline.run()
|
||||
if doc_id == CANVAS_DEBUG_DOC_ID:
|
||||
|
||||
Reference in New Issue
Block a user