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

Finish collection builder #109

Merged
merged 2 commits into from
May 3, 2024
Merged

Finish collection builder #109

merged 2 commits into from
May 3, 2024

Conversation

JojiiOfficial
Copy link
Contributor

Depends on #108

  • Adds more builder types, especially for Quantization configs, Optimizer configs and WalConfig
  • Removes deriving Default for builder with required fields and adds a custom constructor to them

@JojiiOfficial JojiiOfficial force-pushed the finish_collection_builder branch from 7515c43 to 402630d Compare May 2, 2024 08:45
@JojiiOfficial JojiiOfficial marked this pull request as draft May 2, 2024 08:48
@JojiiOfficial JojiiOfficial force-pushed the finish_collection_builder branch from 402630d to 8294725 Compare May 2, 2024 08:50
@JojiiOfficial JojiiOfficial marked this pull request as ready for review May 2, 2024 08:54
@JojiiOfficial JojiiOfficial requested a review from timvisee May 2, 2024 08:55
Copy link
Member

@timvisee timvisee left a 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.

Comment on lines +34 to +35
.vectors_config(VectorParamsBuilder::new(300, Distance::Cosine))
.quantization_config(ScalarQuantizationBuilder::new(QuantizationType::Int8))
Copy link
Member

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.

Copy link
Member

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

src/qdrant.rs Show resolved Hide resolved
@timvisee
Copy link
Member

timvisee commented May 2, 2024

I think this can be merged 😄

@JojiiOfficial JojiiOfficial merged commit b7133bb into dev May 3, 2024
2 checks passed
@JojiiOfficial JojiiOfficial deleted the finish_collection_builder branch May 3, 2024 13:39
timvisee pushed a commit that referenced this pull request Jun 27, 2024
* add more builder; add extra constructor for builder with required fields
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.

3 participants