-
Notifications
You must be signed in to change notification settings - Fork 50
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
Finish collection builder #109
Conversation
7515c43
to
402630d
Compare
402630d
to
8294725
Compare
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.
LGTM when the following review comments are resolved.
.vectors_config(VectorParamsBuilder::new(300, Distance::Cosine)) | ||
.quantization_config(ScalarQuantizationBuilder::new(QuantizationType::Int8)) |
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.
@generall what is your opinion on this; having some required parameters in new()
?
I think it is fine. But we'd have to make sure all parameters we add in the future are optional, otherwise it would fail to compile again.
And this better than a runtime panic for missing fields.
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.
Yeah, we discussed it in slack briefly. I think having ::new
with required params is better
I think this can be merged 😄 |
* add more builder; add extra constructor for builder with required fields
Depends on #108
Default
for builder with required fields and adds a custom constructor to them