Clarify multivector inline storage warning#7523
Conversation
lib/collection/src/config.rs
Outdated
| }); | ||
| } | ||
| if vector_config.multivector_config.is_some() { | ||
| if !vector_quantization { |
There was a problem hiding this comment.
Did you intend to use else if here?
There was a problem hiding this comment.
Just moved the block around.
I like the else if idea 👍
There was a problem hiding this comment.
I thought by "have an early exit" you mean something like this.
There was a problem hiding this comment.
I misread the code, I hallucinated a return after push.
So the else if is what I actually wanted, good catch 👍
timvisee
left a comment
There was a problem hiding this comment.
Looks like we have tight testing which needs to be adjusted as well
📝 WalkthroughWalkthroughThis change reorders the conditional logic in the warning generation for vector configurations with inline_storage and HNSW indexing. The code now prioritizes checking for multivector configuration first; if present, it warns that inline_storage is incompatible with multivectors. Otherwise, it warns that quantization is required when inline_storage is enabled. Corresponding warning messages are swapped, and test expectations are updated to reflect that only one warning is generated when both inline_storage and multivectors are present. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.rs📄 CodeRabbit inference engine (.github/review-rules.md)
Files:
**/src/**/*.rs📄 CodeRabbit inference engine (.github/review-rules.md)
Files:
🧠 Learnings (9)📓 Common learnings📚 Learning: 2025-08-15T11:42:00.297ZApplied to files:
📚 Learning: 2025-09-01T11:19:26.371ZApplied to files:
📚 Learning: 2025-08-11T07:57:01.399ZApplied to files:
📚 Learning: 2025-08-21T13:45:05.899ZApplied to files:
📚 Learning: 2025-08-11T00:37:34.100ZApplied to files:
📚 Learning: 2025-08-15T11:41:10.629ZApplied to files:
📚 Learning: 2025-08-18T10:56:43.707ZApplied to files:
📚 Learning: 2025-08-11T12:30:47.220ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* Clarify multivector inline storage warning * do what I actually wanted to do in first place * fix test
Multivector supports quantization which creates confusing error messages.
e.g.
By checking first the multivector aspect, we can have an early exit and never pretend that quantization is required.