-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added ANN interface and implementations #54
base: sb-main
Are you sure you want to change the base?
Conversation
replay/models/hnswlib.py
Outdated
@@ -0,0 +1,402 @@ | |||
import logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hnswlib should be in ann package, not in models
replay/models/nmslib_hnsw.py
Outdated
@@ -0,0 +1,639 @@ | |||
import logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be in ann package, not in models
@@ -46,6 +46,7 @@ def get_spark_session( | |||
.config("spark.driver.host", "localhost") | |||
.config("spark.sql.execution.arrow.pyspark.enabled", "true") | |||
.config("spark.kryoserializer.buffer.max", "256m") | |||
.config("spark.files.overwrite", "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be add a comment why this option is necessary?
replay/utils.py
Outdated
@@ -15,6 +21,8 @@ | |||
|
|||
# pylint: disable=invalid-name | |||
|
|||
logger = logging.getLogger("replay") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with logging.getLogger(name)
# Conflicts: # replay/models/als.py # replay/models/word2vec.py # replay/utils.py
…y.ann.index_file_managers.nmslib_index_file_manager`. Remove implementation for dense vectors from NmslibHnswMixin. Update tests. Add `HnswlibParam` and `NmslibHnswParam` data classes.
This reverts commit a44575a.
# Conflicts: # .coveragerc # replay/models/als.py
# Conflicts: # pyproject.toml # replay/utils.py
# Conflicts: # poetry.lock
No description provided.