瀏覽代碼

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

tags/0.15.3
aplio 9 月之前
父節點
當前提交
1b6fd9dfe8
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增0 行删除
  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"):

Loading…
取消
儲存