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

[ENH] simplify logic for when to persist index changes (re-apply with fix) #2545

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

codetheweb
Copy link
Contributor

@codetheweb codetheweb commented Jul 19, 2024

History:

Should not be merged until hnswlib version is bumped (bug around persisting a single item was recently fixed).

Copy link

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

@codetheweb codetheweb force-pushed the feat-simplify-persist-trigger-2 branch from 399c0a8 to 807c4c4 Compare July 19, 2024 18:17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

might be a better name for this

Base automatically changed from revert-2539-feat-simplify-persist-trigger to main July 19, 2024 18:36
@codetheweb codetheweb force-pushed the feat-simplify-persist-trigger-2 branch 2 times, most recently from 12a0112 to 4afc352 Compare July 19, 2024 20:23
@@ -276,7 +276,7 @@ def ann_accuracy(

try:
note(
f"recall: {recall}, missing {missing} out of {size}, accuracy threshold {accuracy_threshold}"
f"# recall: {recall}, missing {missing} out of {size}, accuracy threshold {accuracy_threshold}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes it slightly easier to copy/paste failing state machine repro

@codetheweb codetheweb marked this pull request as ready for review July 22, 2024 17:37
@codetheweb codetheweb force-pushed the feat-simplify-persist-trigger-2 branch from aed02f9 to 4d920d6 Compare July 22, 2024 23:30
Copy link
Contributor Author

codetheweb commented Jul 22, 2024

@codetheweb codetheweb force-pushed the feat-simplify-persist-trigger-2 branch from 4d920d6 to d84489d Compare July 23, 2024 00:06
@codetheweb codetheweb force-pushed the feat-simplify-persist-trigger-2 branch from d84489d to 7c1d6d0 Compare July 24, 2024 22:54
@codetheweb codetheweb mentioned this pull request Jul 24, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant