Skip to content

Commit 7a9c554

Browse files
authored
Fixes adding filter attributes on with no prior (#242)
1 parent a7ee5bd commit 7a9c554

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

controller/embedding/manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ def update_embedding_payload(
335335
if not embedding_item:
336336
return False
337337
# commit to ensure the values are set correct for the embedding container to request
338-
previous_attributes = set(embedding_item.filter_attributes)
338+
previous_attributes = (
339+
set()
340+
if not embedding_item.filter_attributes
341+
else set(embedding_item.filter_attributes)
342+
)
339343
embedding_item.filter_attributes = filter_attributes
340344
general.commit()
341345
if connector.update_attribute_payloads_for_neural_search(project_id, embedding_id):

0 commit comments

Comments
 (0)