Skip to content

refactor: do not recompute every time num_docs#1729

Merged
JoanFM merged 3 commits into
mainfrom
fix-num-docs
Jul 26, 2023
Merged

refactor: do not recompute every time num_docs#1729
JoanFM merged 3 commits into
mainfrom
fix-num-docs

Conversation

@JoanFM

@JoanFM JoanFM commented Jul 26, 2023

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
@codecov

codecov Bot commented Jul 26, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: +1.27% 🎉

Comparison is base (24143a1) 83.21% compared to head (ca5cd2f) 84.48%.

❗ Current head ca5cd2f differs from pull request most recent head dbdc990. Consider uploading reports for the commit dbdc990 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1729      +/-   ##
==========================================
+ Coverage   83.21%   84.48%   +1.27%     
==========================================
  Files         134      134              
  Lines        8793     8793              
==========================================
+ Hits         7317     7429     +112     
+ Misses       1476     1364     -112     
Flag Coverage Δ
docarray 84.48% <100.00%> (+1.27%) ⬆️

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

Files Changed Coverage Δ
docarray/index/backends/hnswlib.py 74.21% <100.00%> (ø)

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jupyterjazz and others added 2 commits July 26, 2023 13:28
Signed-off-by: jupyterjazz <saba.sturua@jina.ai>
…num-docs

Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
Comment thread docarray/index/backends/hnswlib.py

@jupyterjazz jupyterjazz left a comment

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.

value of k should not be more than number of vectors, otherwise lgtm

@github-actions

Copy link
Copy Markdown

📝 Docs are deployed on https://ft-fix-num-docs--jina-docs.netlify.app 🎉

@jupyterjazz jupyterjazz left a comment

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.

I wasn't aware of this issue. Let's add 1-2 sentences in the code to explain why we're doing this

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.

2 participants