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

allow mmh3 4.X #77

Closed
wants to merge 2 commits into from
Closed

allow mmh3 4.X #77

wants to merge 2 commits into from

Conversation

acatav
Copy link
Collaborator

@acatav acatav commented Mar 22, 2024

Problem

Some users got into a dependency hell due to restriction of mmh3 to be 3.X and not allowing 4.X

Solution

Allow mmh3 4.X, according to the docs and some local tests there is no difference in encodings.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: non breaking dependency update

Test Plan

Tested locally comparison between versions to make sure the aligned, also CI have tests for BM25 and I run with both versions

@acatav acatav requested a review from igiloh-pinecone March 22, 2024 00:52
Copy link
Contributor

@igiloh-pinecone igiloh-pinecone left a comment

Choose a reason for hiding this comment

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

LGTM!
Made one suggestion

pyproject.toml Outdated
@@ -12,7 +12,7 @@ torch = { version = ">=1.13.1", optional = true }
transformers = { version = ">=4.26.1", optional = true }
sentence-transformers = { version = ">=2.0.0", optional = true }
wget = "^3.2"
mmh3 = "^3.1.0"
mmh3 = "^3.1.0 || ^4.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

You van simply do >3.1.0, and then it's anything bigger than 3.1, including 4.0

@acatav acatav closed this Mar 22, 2024
@acatav
Copy link
Collaborator Author

acatav commented Mar 22, 2024

Duplicated

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.

2 participants