Skip to content

Commit 6000c34

Browse files
committed
change tuple for frozenset
1 parent b403227 commit 6000c34

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
@@ -177,7 +177,7 @@ def create_mongodb_index(
177177

178178
class VectorSearchIndex(Index):
179179
suffix = "vector_search"
180-
ALLOWED_SIMILARITY_FUNCTIONS = ("euclidean", "cosine", "dotProduct")
180+
ALLOWED_SIMILARITY_FUNCTIONS = frozenset(("euclidean", "cosine", "dotProduct"))
181181

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

0 commit comments

Comments
 (0)