Skip to content

Commit

Permalink
fix: set indexing technique from dataset during update-by-text (#13155)
Browse files Browse the repository at this point in the history
  • Loading branch information
aplio authored Feb 3, 2025
1 parent 304467e commit 1b6fd9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/controllers/service_api/dataset/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def post(self, tenant_id, dataset_id, document_id):
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"):
Expand Down

0 comments on commit 1b6fd9d

Please sign in to comment.