-
Notifications
You must be signed in to change notification settings - Fork 137
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
[BUG] Mapping accepts both model id and dimension #2318
Comments
While adding validation we should also add version check to make sure that validation is applicable only for indices that are created after validation check is added. Without version check, when index is upgraded from old version, it will not work as expected |
I'll take this up. Running some initial changes on my local to make sure I have the right idea:
There's also a version check in close proximity to the validation that we can look into reusing |
What is the bug?
I can create knn index with knn field type contains both model id and dimension.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Should raise an exception that either model id or dimension should be provided. When model id is provided, k-NN refer dimension from training index instead of user defined dimension in mapping request body.
What is your host/environment?
N/A
Do you have any screenshots?
N/A
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: