8000 fix: vector indexer only uses str as keys by maximilianwerk · Pull Request #1829 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: vector indexer only uses str as keys #1829

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 5 commits into from
Feb 1, 2021

Conversation

maximilianwerk
Copy link
Member
@maximilianwerk maximilianwerk commented Feb 1, 2021

Breaking Changes #1606

keys inside the NumpyIndexer are not always of type str. I am not sure, whether it should be Iterator[str], Iterable[str], Sequence[str] or simply List[str] though. Input would be highly appreciated.

query_by_id => query_by_key to keep consistency.

def query(keys:...=> def query(query_vectors, ...

Furthermore, I changed the interface of the delete function to also use str instead of int. Not sure about this change as well.

Quite a few hub changes must be done after this PR is merged in order to keep all hub indexer in sync with this PR.

@codecov
Copy link
codecov bot commented Feb 1, 2021

Codecov Report

Merging #1829 (6e1074f) into master (49cb447) will increase coverage by 0.19%.
The diff coverage is 98.03%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1829      +/-   ##
==========================================
+ Coverage   85.86%   86.05%   +0.19%     
==========================================
  Files         145      145              
  Lines        6924     6920       -4     
==========================================
+ Hits         5945     5955      +10     
+ Misses        979      965      -14     
Impacted Files Coverage Δ
jina/drivers/search.py 96.49% <66.66%> (ø)
jina/clients/asyncio.py 87.87% <100.00%> (ø)
jina/drivers/delete.py 100.00% <100.00%> (ø)
jina/drivers/index.py 100.00% <100.00%> (ø)
jina/executors/indexers/vector.py 93.75% <100.00%> (+0.06%) ⬆️
jina/flow/asyncio.py 68.85% <100.00%> (ø)
jina/types/document/converters.py 96.87% <100.00%> (ø)
jina/types/document/uid.py 86.95% <100.00%> (-0.28%) ⬇️
jina/peapods/runtimes/asyncio/rest/app.py 81.11% <0.00%> (+1.39%) ⬆️
jina/drivers/querylang/queryset/lookup.py 84.21% <0.00%> (+10.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49cb447...82f3ad9. Read the comment docs.

@github-actions
Copy link
github-actions bot commented Feb 1, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1151, delta to last 3 avg.: -1%
  • 🐢🐢 query QPS at 20, delta to last 3 avg.: -24%

Breakdown

Version Index QPS Query QPS
current 1151 20
0.9.24 1137 26
0.9.23 1188 26

Backed by latency-tracking. Further commits will update this comment.

@hanxiao hanxiao merged commit 1f5f7cf into master Feb 1, 2021
@hanxiao hanxiao deleted the JINACORE-622-fix-vector-interface branch February 1, 2021 17:11
This was referenced Feb 3, 2021
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
0