Skip to content

Commit 28ab176

Browse files
committed
change tuple for frozenset
1 parent ce94b7f commit 28ab176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def create_mongodb_index(
216216

217217
class VectorSearchIndex(Index):
218218
suffix = "vector_search"
219-
ALLOWED_SIMILARITY_FUNCTIONS = ("euclidean", "cosine", "dotProduct")
219+
ALLOWED_SIMILARITY_FUNCTIONS = frozenset(("euclidean", "cosine", "dotProduct"))
220220

221221
def __init__(self, *expressions, similarities="cosine", **kwargs):
222222
super().__init__(*expressions, **kwargs)

0 commit comments

Comments
 (0)