You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add validation for pq m parameter before training starts (#1713)
* Add validation for pq code count before training starts
Signed-off-by: Ryan Bogan <[email protected]>
* Add integration test
Signed-off-by: Ryan Bogan <[email protected]>
* Add unit tests
Signed-off-by: Ryan Bogan <[email protected]>
* Clean up code
Signed-off-by: Ryan Bogan <[email protected]>
* Remove unnecessary lines
Signed-off-by: Ryan Bogan <[email protected]>
* Add changelog entry
Signed-off-by: Ryan Bogan <[email protected]>
* Change framework to add validation with data
Signed-off-by: Ryan Bogan <[email protected]>
* Remove unused error message
Signed-off-by: Ryan Bogan <[email protected]>
* Add unit tests
Signed-off-by: Ryan Bogan <[email protected]>
* Change space type check name for readability
Signed-off-by: Ryan Bogan <[email protected]>
* Add javadocs
Signed-off-by: Ryan Bogan <[email protected]>
* Modify validation error wording and add json structure to tests
Signed-off-by: Ryan Bogan <[email protected]>
* Change TrainingDataSpec to VectorSpaceInfo
Signed-off-by: Ryan Bogan <[email protected]>
* Add unit tests
Signed-off-by: Ryan Bogan <[email protected]>
---------
Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit 3701d19)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
19
19
* Add KnnCircuitBreakerException and modify exception message [#1688](https://github.com/opensearch-project/k-NN/pull/1688)
20
20
* Add stats for radial search [#1684](https://github.com/opensearch-project/k-NN/pull/1684)
21
21
* Support script score when doc value is disabled and fix misusing DISI [#1696](https://github.com/opensearch-project/k-NN/pull/1696)
22
+
* Add validation for pq m parameter before training starts [#1713](https://github.com/opensearch-project/k-NN/pull/1713)
22
23
### Bug Fixes
23
24
* Block commas in model description [#1692](https://github.com/opensearch-project/k-NN/pull/1692)
24
25
* Update threshold value after new result is added [#1715](https://github.com/opensearch-project/k-NN/pull/1715)
@@ -102,6 +103,43 @@ public ValidationException validate(MethodComponentContext methodComponentContex
102
103
returnvalidationException;
103
104
}
104
105
106
+
/**
107
+
* Validate that the methodComponentContext is a valid configuration for this methodComponent, using additional data not present in the method component context
108
+
*
109
+
* @param methodComponentContext to be validated
110
+
* @param vectorSpaceInfo additional data not present in the method component context
111
+
* @return ValidationException produced by validation errors; null if no validations errors.
0 commit comments