From 1b6fd9dfe8bffd231a54096685dfc055e2da781f Mon Sep 17 00:00:00 2001 From: aplio Date: Mon, 3 Feb 2025 12:06:03 +0900 Subject: [PATCH] fix: set indexing technique from dataset during update-by-text (#13155) --- api/controllers/service_api/dataset/document.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/controllers/service_api/dataset/document.py b/api/controllers/service_api/dataset/document.py index b4c3a4c6075781..3053e75a0c17ce 100644 --- a/api/controllers/service_api/dataset/document.py +++ b/api/controllers/service_api/dataset/document.py @@ -143,6 +143,9 @@ def post(self, tenant_id, dataset_id, document_id): if not dataset: raise ValueError("Dataset is not exist.") + # indexing_technique is already set in dataset since this is an update + args["indexing_technique"] = dataset.indexing_technique + # Validate metadata if provided if args.get("doc_type") or args.get("doc_metadata"): if not args.get("doc_type") or not args.get("doc_metadata"):