Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Feat: reference should also be list after 0.20.x (#9582)

天海蒼灆997627861a99
diff --git a/api/db/services/canvas_service.py b/api/db/services/canvas_service.py
index 98d17e1d83..e7ac364757 100644
--- a/api/db/services/canvas_service.py
+++ b/api/db/services/canvas_service.py
@@ -182,7 +182,7 @@ def completion(tenant_id, agent_id, session_id=None, **kwargs):
yield "data:" + json.dumps(ans, ensure_ascii=False) + "\n\n"
conv.message.append({"role": "assistant", "content": txt, "created_at": time.time(), "id": message_id})
- conv.reference = canvas.get_reference()
+ conv.reference.append(canvas.get_reference())
conv.errors = canvas.error
conv.dsl = str(canvas)
conv = conv.to_dict()