Skip to content

chore: bump annlite version#676

Merged
JoanFM merged 17 commits into
mainfrom
unpin-annlite
Nov 3, 2022
Merged

chore: bump annlite version#676
JoanFM merged 17 commits into
mainfrom
unpin-annlite

Conversation

@JoanFM

@JoanFM JoanFM commented Oct 25, 2022

Copy link
Copy Markdown
Member

Goals:

Bump ANNLite version to see what breaks

@JoanFM JoanFM marked this pull request as ready for review October 25, 2022 09:31
@codecov

codecov Bot commented Oct 25, 2022

Copy link
Copy Markdown

Codecov Report

Merging #676 (729bd9e) into main (c38d82d) will decrease coverage by 0.25%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #676      +/-   ##
==========================================
- Coverage   88.28%   88.02%   -0.26%     
==========================================
  Files         134      134              
  Lines        6640     6648       +8     
==========================================
- Hits         5862     5852      -10     
- Misses        778      796      +18     
Flag Coverage Δ
docarray 88.02% <100.00%> (-0.26%) ⬇️

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

Impacted Files Coverage Δ
docarray/array/storage/annlite/backend.py 97.33% <100.00%> (+0.07%) ⬆️
docarray/array/storage/qdrant/backend.py 96.11% <100.00%> (+0.07%) ⬆️
docarray/array/storage/sqlite/backend.py 94.87% <100.00%> (+0.13%) ⬆️
docarray/array/storage/weaviate/backend.py 89.65% <100.00%> (+0.14%) ⬆️
docarray/score/mixins/representer.py 80.00% <0.00%> (-20.00%) ⬇️
docarray/dataclasses/getter.py 84.61% <0.00%> (-15.39%) ⬇️
docarray/score/mixins/property.py 76.66% <0.00%> (-13.34%) ⬇️
docarray/array/match.py 85.71% <0.00%> (-4.77%) ⬇️
docarray/array/chunk.py 86.95% <0.00%> (-4.35%) ⬇️
docarray/document/mixins/_property.py 86.57% <0.00%> (-2.02%) ⬇️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions github-actions Bot added size/s and removed size/m labels Oct 26, 2022
@jemmyshin jemmyshin requested a review from numb3r3 October 26, 2022 09:54
Comment thread setup.py
],
'annlite': [
'annlite==0.3.13',
'annlite',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set correct mimimum version here

Comment thread setup.py
'transformers>=4.16.2',
'weaviate-client~=3.3.0',
'annlite>=0.3.12',
'annlite',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set correct mimimum version here

**kwargs,
):

config = copy.deepcopy(config)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why deepcopy here? the data_path doesn't change

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need it because in some cases you pass the same config object to multiple das. So even though data_path is randomly generated for some DA, it will be re-used for the next one, implicitly.
That's why I try to enforce the same pattern for all backends to avoid this kind of issues

del subindex_da[old_ids]
subindex_da.extend(DocumentArray(docs)[subindex_selector])
del subindex_da[old_ids]
subindex_da.extend(DocumentArray(docs)[subindex_selector])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change @alaeddine-13 ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is problematic for annlite. But in general I think subindices should be synced when the parent index is synced

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but why not use the context manager?

@JoanFM JoanFM merged commit 8a3b761 into main Nov 3, 2022
@JoanFM JoanFM deleted the unpin-annlite branch November 3, 2022 22:30
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.

3 participants