Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkim committed Sep 18, 2024
1 parent da25a73 commit 36a3bfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions chromadb/test/property/invariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ def ann_accuracy(
else:
continue
else:
if not correct_distance:
breakpoint()
assert correct_distance

assert np.allclose(embeddings[index], query_results["embeddings"][i][j])
Expand Down
16 changes: 2 additions & 14 deletions chromadb/test/property/test_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,7 @@ def test_autocasting_validate_embeddings_for_compatible_types(
validated_embeddings = validate_embeddings(Collection._normalize_embeddings(embds))
assert all(
[
isinstance(value, np.ndarray)
and all(
[
isinstance(vec, (np.integer, np.floating)) and not isinstance(vec, bool)
for vec in value
]
)
isinstance(value, np.ndarray) and (value.dtype == np.float32 or value.dtype == np.float64 or value.dtype == np.int32 or value.dtype == np.int64)
for value in validated_embeddings
]
)
Expand All @@ -819,13 +813,7 @@ def test_autocasting_validate_embeddings_with_ndarray(
validated_embeddings = validate_embeddings(Collection._normalize_embeddings(embds))
assert all(
[
isinstance(value, np.ndarray)
and all(
[
isinstance(vec, (np.integer, np.floating)) and not isinstance(vec, bool)
for vec in value
]
)
isinstance(value, np.ndarray) and (value.dtype == np.float32 or value.dtype == np.float64 or value.dtype == np.int32 or value.dtype == np.int64)
for value in validated_embeddings
]
)
Expand Down

0 comments on commit 36a3bfc

Please sign in to comment.