-
Notifications
You must be signed in to change notification settings - Fork 37
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
CBL-5500 : Implement Vector Search API #527
Conversation
032201d
to
0ddcd90
Compare
* Implemented Vector Search API. * Added a sanity test but disabled (Need to implement structure for automated testing).
The PR validation failure is due to an error when pushing the code coverage comment to this PR. |
// limitations under the License. | ||
// | ||
|
||
|
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.
empty line
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.
Will fix this in the later PR as don't want to wait for another round of PR validation.
if (config.minTrainingSize < 1) { | ||
C4Error::raise(LiteCoreDomain, kC4ErrorInvalidParameter, "minTrainingSize must be > 1."); | ||
} else if (config.maxTrainingSize < 1) { | ||
C4Error::raise(LiteCoreDomain, kC4ErrorInvalidParameter, "maxTrainingSize must be > 1."); | ||
} else if (config.minTrainingSize > config.maxTrainingSize) { | ||
C4Error::raise(LiteCoreDomain, kC4ErrorInvalidParameter, "minTrainingSize must be <= maxTrainingSize."); | ||
} |
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.
I like this more, will have to change it in iOS. Maybe is worth adding how we handle the platform checks in the spec to refer back to it for Beta 2 so we have it consistent.
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.
I would like that to be a bit flexible for each platform developer to decide. We can sync about the error messaging though. We had a common project for sharing error message. You can check with Blake.
Implemented Vector Search API.
Added a sanity test but disabled (Need to implement structure for automated testing).