File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,21 @@ def update_embedding_payload(
331
331
project_id = project_id ,
332
332
message = f"upload_embedding_payload:{ str (embedding_id )} :start" ,
333
333
)
334
+ embedding_item = embedding .get (project_id , embedding_id )
335
+ if not embedding_item :
336
+ return False
337
+ # commit to ensure the values are set correct for the embedding container to request
338
+ previous_attributes = set (embedding_item .filter_attributes )
339
+ embedding_item .filter_attributes = filter_attributes
340
+ general .commit ()
334
341
if connector .update_attribute_payloads_for_neural_search (project_id , embedding_id ):
335
342
embedding .update_embedding_filter_attributes (
336
343
project_id , embedding_id , filter_attributes , with_commit = True
337
344
)
338
345
return True
346
+ embedding .update_embedding_filter_attributes (
347
+ project_id , embedding_id , previous_attributes , with_commit = True
348
+ )
339
349
return False
340
350
341
351
You can’t perform that action at this time.
0 commit comments