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

This commit is contained in:
aplio
2025-02-03 12:06:03 +09:00
committed by GitHub
parent 304467e3f5
commit 1b6fd9dfe8

View File

@@ -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"):