Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if samples are the same in Indra vs Python #2516

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

# 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="python",
distance_metric=distance_metric,
)

# use indra implementation to search the data
Expand All @@ -486,6 +488,12 @@
)

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

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

Check warning on line 493 in deeplake/core/vectorstore/test_deeplake_vectorstore.py

View check run for this annotation

Codecov / codecov/patch

deeplake/core/vectorstore/test_deeplake_vectorstore.py#L492-L493

Added lines #L492 - L493 were not covered by tests

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

Check warning on line 495 in deeplake/core/vectorstore/test_deeplake_vectorstore.py

View check run for this annotation

Codecov / codecov/patch

deeplake/core/vectorstore/test_deeplake_vectorstore.py#L495

Added line #L495 was not covered by tests

assert all(
[
isclose(
Expand Down
Loading