Skip to content

Commit

Permalink
identity to equality check (#1566)
Browse files Browse the repository at this point in the history
## Description of changes

Changes identity `is` to equality `==` check

Co-authored-by: Jeffrey Huber <[email protected]>
  • Loading branch information
carlsonp and jeffchuber authored Dec 23, 2023
1 parent b8dfa5a commit 47447b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chromadb/utils/embedding_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def __init__(
self._model_name = model_name
self._task_type = task_type
self._task_title = None
if self._task_type is "RETRIEVAL_DOCUMENT":
if self._task_type == "RETRIEVAL_DOCUMENT":
self._task_title = "Embedding of single string"

def __call__(self, input: Documents) -> Embeddings:
Expand Down

0 comments on commit 47447b6

Please sign in to comment.