Skip to content

refactor: contains method in the base class #1701

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

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

jupyterjazz
Copy link
Contributor

@jupyterjazz jupyterjazz commented Jul 15, 2023

small refactoring: put contains method in the base class and ask backends to implement _doc_exists

@jupyterjazz jupyterjazz linked an issue Jul 15, 2023 that may be closed by this pull request
@jupyterjazz jupyterjazz changed the title refactor: abstract contains method refactor: contains method in the base class Jul 15, 2023
@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Patch coverage: 88.88% and project coverage change: +0.05 🎉

Comparison is base (a3f6998) 85.88% compared to head (45fc457) 85.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1701      +/-   ##
==========================================
+ Coverage   85.88%   85.94%   +0.05%     
==========================================
  Files         126      126              
  Lines        7899     7890       -9     
==========================================
- Hits         6784     6781       -3     
+ Misses       1115     1109       -6     
Flag Coverage Δ
docarray 85.94% <88.88%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/index/backends/in_memory.py 46.62% <50.00%> (+0.51%) ⬆️
docarray/index/abstract.py 88.64% <71.42%> (-0.10%) ⬇️
docarray/index/backends/elastic.py 90.16% <100.00%> (+0.26%) ⬆️
docarray/index/backends/hnswlib.py 95.27% <100.00%> (+0.35%) ⬆️
docarray/index/backends/qdrant.py 77.72% <100.00%> (+0.24%) ⬆️
docarray/index/backends/redis.py 88.70% <100.00%> (+0.22%) ⬆️
docarray/index/backends/weaviate.py 95.02% <100.00%> (+0.22%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

📝 Docs are deployed on https://ft-refactor-docindex-contains--jina-docs.netlify.app 🎉

@jupyterjazz jupyterjazz merged commit 0ea6846 into main Jul 17, 2023
@jupyterjazz jupyterjazz deleted the refactor-docindex-contains branch July 17, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: doc_exists for each backend
2 participants