-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add HNSW hyperparameters m
, ef_construction
to default index_settings
config
#386
Conversation
Test run: https://github.com/marqo-ai/marqo/actions/runs/4380687872/jobs/7668033896
|
Will require PR to marqodocs to add these changes to |
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.
Looks mostly good, unit tests failed though. Could you try merging mainline and rerunning unit tests?
@@ -56,6 +56,16 @@ class IndexSettingsField: | |||
number_of_shards = "number_of_shards" | |||
number_of_replicas = "number_of_replicas" | |||
|
|||
ann_parameters = "ann_parameters" | |||
ann_method = "method" | |||
ann_metric = "space_type" |
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.
why isn't this just ann_space_type
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.
Again, see above.
@@ -94,21 +95,13 @@ def add_customer_field_properties(config: Config, index_name: str, | |||
utils.generate_vector_name(field_name[0])): { | |||
"type": "knn_vector", | |||
"dimension": model_properties["dimensions"], | |||
"method": { |
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 could be "ann_method"
for clarity, since it's handling ann parameters. but may not be important as this isn't exposed to users
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.
IIRC, this is explicitly defined by Opensearch, we must follow their convention.
rerunning unit tests: https://github.com/marqo-ai/marqo/actions/runs/4551020731 |
Rerunning unit tests: https://github.com/marqo-ai/marqo/actions/runs/4568709045 |
* Updated readme with new examples from the documentation and reordered the examples to keep document deletion and index deletion at the bottom * removed accidental duplication of example * updated links in README examples to more stable versions
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.
looks good, passed tests
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
(#206)
Have unit tests been run against this PR? (Has there also been any additional testing?)
Related Python client changes (link commit/PR here)
Index.create(
, I don't think these are important enough to increase the complexity of the interface.Related documentation changes (link commit/PR here)
Please check if the PR fulfills these requirements