Skip to content
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

Merged
merged 1 commit into from
Mar 22, 2024
Merged

CBL-5500 : Implement Vector Search API #527

merged 1 commit into from
Mar 22, 2024

Conversation

pasin
Copy link
Contributor

@pasin pasin commented Mar 22, 2024

  • Implemented Vector Search API.

  • Added a sanity test but disabled (Need to implement structure for automated testing).

@pasin pasin force-pushed the feature/CBL-5500 branch 8 times, most recently from 032201d to 0ddcd90 Compare March 22, 2024 04:52
* Implemented Vector Search API.

* Added a sanity test but disabled (Need to implement structure for automated testing).
@pasin pasin force-pushed the feature/CBL-5500 branch from 0ddcd90 to 31de295 Compare March 22, 2024 05:43
@pasin
Copy link
Contributor Author

pasin commented Mar 22, 2024

The PR validation failure is due to an error when pushing the code coverage comment to this PR.

@pasin pasin requested a review from velicuvlad March 22, 2024 16:57
// limitations under the License.
//


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line

Copy link
Contributor Author

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.

Comment on lines +160 to +166
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.");
}
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@pasin pasin merged commit 2def36d into master Mar 22, 2024
6 of 7 checks passed
@pasin pasin deleted the feature/CBL-5500 branch March 22, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants