Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: keywords field not persist in segements api (#17151)

liuzhenghuad5b48a0aa334
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index 8f88cecbe65..6fe301588ac 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -1663,6 +1663,7 @@ class SegmentService:
content=content,
word_count=len(content),
tokens=tokens,
+ keywords=segment_item.get("keywords", []),
status="completed",
indexing_at=datetime.datetime.now(datetime.UTC).replace(tzinfo=None),
completed_at=datetime.datetime.now(datetime.UTC).replace(tzinfo=None),