Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Merged
Prev Previous commit
Next Next commit
refactor: adjust to recent changes
Signed-off-by: jupyterjazz <saba.sturua@jina.ai>
  • Loading branch information
jupyterjazz committed Jul 17, 2023
commit 92d05c695da92c18cf274867ac70c149affe1079
4 changes: 2 additions & 2 deletions docarray/index/backends/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,9 @@ def _map_embedding(self, embedding: AnyTensor) -> np.ndarray:

return embedding

def __contains__(self, item) -> bool:
def _doc_exists(self, doc_id: str) -> bool:
result = self._collection.query(
expr="id in " + str([item.id]),
expr="id in " + str([doc_id]),
offset=0,
output_fields=["serialized"],
)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.