feat: QdrantServerless client prototype - #295
Merged
Merged
Conversation
Introduce a parallel client for Qdrant Serverless with tenant-facing collection management and point ops that strip unsupported cluster parameters, matching the Python client approach.
Warn that the serverless client is experimental and should not be used yet.
Contributor
Author
|
Documented the serverless client as in development — do not use yet in module/crate docs, |
Bind every model and gRPC struct field by name so new proto fields become compile errors instead of being silently dropped via `_` wildcards.
timvisee
approved these changes
Sep 2, 2026
Comment on lines
+191
to
+195
| /// Add a custom header to send with every request. | ||
| pub fn header(mut self, key: impl Into<String>, value: impl Into<String>) -> Self { | ||
| self.config.custom_headers.push((key.into(), value.into())); | ||
| self | ||
| } |
Member
There was a problem hiding this comment.
We can probably remove this (for now), as we don't support custom deployments.
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prototype of a dedicated client for Qdrant Serverless, parallel to the regular
Qdrantclient, following the serverless client design and mirroring qdrant-client#1393.Why
Serverless is not identical to a regular cluster: collection management exposes only a simplified tenant-facing config (no quantization/WAL/segments), and point operations don't support read consistency, shard selection, write ordering, or filtered updates. A separate client keeps those parameters out of the serverless interface.
How (Rust adaptations)
Everything lives in a dedicated
qdrant_client::serverlessmodule.qdrant-cloud-public-api'sserverless/collections.protointosrc/serverless/grpc.rs(crate-private). Sync/regenerate withtools/sync_serverless_proto.sh/cargo test --test serverless_protos -- --ignored.DenseVectorConfig,SparseVectorConfig,PrecisionTier, payload-index types,CollectionConfig,CollectionInfo,CollectionSummary) — no storage internals. Generated gRPC types stay internal.QdrantServerlesswraps an internalQdrant(check_compatibility = false) and reuses its channel for both PointsService and the new CollectionsService (TLS,api-keymetadata, user-agent in one place).read_consistency,shard_key_selector,ordering,lookup_from,with_lookup,update_filter,update_mode) before the RPC — Rust's shared builders can't drop fields from the type system without a full parallel builder set.get_collectionreturnsCollectionInfo { exists, ... }instead of erroring on missing collections.Not included (mechanical follow-ups)
Dedicated builders that omit unsupported fields at the type level; live integration tests against a serverless endpoint.
Test plan
cargo test --lib serverlesscargo test --test serverless_protoscargo clippy --lib -- -D warningscargo check --example serverless --features serde