Skip to content

Update rust client for 1.18#278

Open
JojiiOfficial wants to merge 4 commits intodevfrom
v1-18-x
Open

Update rust client for 1.18#278
JojiiOfficial wants to merge 4 commits intodevfrom
v1-18-x

Conversation

@JojiiOfficial
Copy link
Copy Markdown
Contributor

Updated protobufs and updated/added required builder structs.
These changes include latest TurboQuant changes from qdrant/qdrant#8914

Comment thread tests/protos.rs
}

impl BuilderExt for Builder {
fn configure_docs(self) -> Self {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The enum variant Bits1_5 in protobuf is named Bits15 in rust types.
This naming might create confusion and we can't modify the naming, without doing specially crafted file edits.
Therefore we manually add this doc comment clarifying the name and removing ambiguity.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it impossible to rewrite this to Bits1_5 in our Rust client by any other means?

Because I'm still not super fond of this one:
image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Neither me nor claude found a way to translate them at codegen.
Maybe there is a way to make this type private. Then we could wrap our own type around it. But this increases maintenance work so I decided to go with the comment instead.

Do you think the ambiguity justifies an extra type here?

Copy link
Copy Markdown
Member

@timvisee timvisee May 7, 2026

Choose a reason for hiding this comment

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

I see, I also am unable to change it as codegen is quite limited in terms of configuration.

We use tools/sync_proto.sh to pull proto files. We add a sed substitude to rename it to something that translates to something better. But that probably isn't worth it. Thanks for checking.

@JojiiOfficial JojiiOfficial requested review from generall and timvisee May 6, 2026 09:51
@generall
Copy link
Copy Markdown
Member

generall commented May 6, 2026

Please include examples for new API like those https://github.com/qdrant/rust-client/tree/dev/tests/snippet_tests

@JojiiOfficial JojiiOfficial requested review from generall and removed request for generall May 6, 2026 13:48
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