mirror of https://github.com/langgenius/dify.git
fix: set indexing technique from dataset during update-by-text (#13155)
This commit is contained in:
parent
304467e3f5
commit
1b6fd9dfe8
|
|
@ -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…
Reference in New Issue