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

pull/12788/merge
aplio 1 year ago committed by GitHub
parent 304467e3f5
commit 1b6fd9dfe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save