Skip to content

Commit

Permalink
Check if samples are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgerDav committed Aug 4, 2023
1 parent 7f48f19 commit a286259
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deeplake/core/vectorstore/test_deeplake_vectorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ def test_search_quantitative(distance_metric, hub_cloud_dev_token):

# use python implementation to search the data
data_p = vector_store.search(
embedding=query_embedding, exec_option="python", distance_metric=distance_metric
embedding=query_embedding,
exec_option="tensor_db",
distance_metric=distance_metric,
)

# use indra implementation to search the data
Expand All @@ -486,6 +488,12 @@ def test_search_quantitative(distance_metric, hub_cloud_dev_token):
)

assert len(data_p["score"]) == len(data_ce["score"])

print(data_ce["id"])
print(data_p["id"])

assert data_ce["id"] == data_p["id"]

assert all(
[
isclose(
Expand Down

0 comments on commit a286259

Please sign in to comment.