Explorar el Código

fix: set indexing technique from dataset during update-by-text (#13155)

aplio hace 2 meses
padre
commit
1b6fd9dfe8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      api/controllers/service_api/dataset/document.py

+ 3 - 0
api/controllers/service_api/dataset/document.py

@@ -143,6 +143,9 @@ class DocumentUpdateByTextApi(DatasetApiResource):
         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"):