qdrant-client
Library Featured
Rust client for Qdrant Vector Search Engine
- Downloads
- 1,550,266
- Dependents
- 114
- Stars
- 418
- Forks
- 85
- Contributors
- 28
- Commits
- 399
- Latest release
- 1.20.0 ·
About
Qdrant Rust client
The Qdrant - High-Performance Vector Search at Scale - client for Rust.
Documentation:
- Qdrant documentation: https://qdrant.tech/documentation/
- Crate documentation: https://docs.rs/qdrant-client
Installation
cargo add qdrant-client
Package is available in crates.io
Examples
A list of example snippets can be found here
More examples can be found in the examples folder
Dependencies
The client uses gRPC via the Tonic library.
To change anything in the protocol buffer definitions, you need the protoc Protocol Buffers compiler, along with Protocol Buffers resource files.
Refer to the Tonic installation guide for more details.
Usage
Run Qdrant with enabled gRPC interface:
# With env variable
docker run -p 6333:6333 -p 6334:6334 \
-e QDRANT__SERVICE__GRPC_PORT="6334" \
qdrant/qdrant
Or by updating the configuration file:
service:
grpc_port: 6334
More info about gRPC in documentation.
Making requests
Add necessary dependencies:
cargo add qdrant-client anyhow tonic tokio serde-json --features tokio/rt-multi-thread
Add query example from examples/query.rs to your src/main.rs:
Read the full README
use qdrant_client::qdrant::{
Condition, CreateCollectionBuilder, Distance, Filter, PointStruct, QueryPointsBuilder,
ScalarQuantizationBuilder, SearchParamsBuilder, UpsertPointsBuilder, VectorParamsBuilder,
};
use qdrant_client::{Payload, Qdrant, QdrantError};
#[tokio::main]
async fn main() -> Result<(), QdrantError> {
// Example of top level client
// You may also use tonic-generated client from `src/qdrant.rs`
let client = Qdrant::from_url("http://localhost:6334").build()?;
let collections_list = client.list_collections().await?;
dbg!(collections_list);
// collections_list = {
// "collections": [
// {
// "name": "test"
// }
// ]
// }
let collection_name = "test";
client.delete_collection(collection_name).await?;
client
.create_collection(
CreateCollectionBuilder::new(collection_name)
.vectors_config(VectorParamsBuilder::new(10, Distance::Cosine))
.quantization_config(ScalarQuantizationBuilder::default()),
)
.await?;
let collection_info = client.collection_info(collection_name).await?;
dbg!(collection_info);
let payload: Payload = serde_json::json!(
{
"foo": "Bar",
"bar": 12,
"baz": {
"qux": "quux"
}
}
)
.try_into()
.unwrap();
let points = vec![PointStruct::new(0, vec![12.; 10], payload)];
client
.upsert_points(UpsertPointsBuilder::new(collection_name, points))
.await?;
let query_result = client
.query(
QueryPointsBuilder::new(collection_name)
.query(vec![11.0; 10])
.limit(10)
.filter(Filter::all([Condition::matches("bar", 12)]))
.with_payload(true)
.params(SearchParamsBuilder::default().exact(true)),
)
.await?;
dbg!(&query_result);
// query_result = [
// {
// "id": 0,
// "version": 0,
// "score": 1.0000001,
// "payload": {
// "bar": 12,
// "baz": {
// "qux": "quux"
// },
// "foo": "Bar"
// }
// }
// ]
let found_point = query_result.result.into_iter().next().unwrap();
let mut payload = found_point.payload;
let baz_payload = payload.remove("baz").unwrap().into_json();
println!("baz: {baz_payload}");
// baz: {"qux":"quux"}
Ok(())
}
Or run the example from this project directly:
cargo run --example search
Qdrant Cloud
Qdrant Cloud is a managed service for Qdrant.
The client needs to be configured properly to access the service.
- make sure to use the correct port (6334)
- make sure to pass your API KEY
use qdrant_client::Qdrant;
let client = Qdrant::from_url("http://xxxxxxxxxx.eu-central.aws.cloud.qdrant.io:6334")
// Use an environment variable for the API KEY for example
.api_key(std::env::var("QDRANT_API_KEY"))
.build()?;
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
Rust client for Qdrant Vector Search Engine |
1,550,266 downloads over 30 days | 114 | 418 | 1.20.0 | GPU support unknown | No native code found | Apache-2.0 |
|
usearch Featured
Smaller & Faster Single-File Vector Search Engine from Unum |
242,089 downloads over 30 days | 70 | 4,373 | 2.26.6 | GPU support unknown | Binds native code: cxx, link-cplusplus, numkong (feature numkong). Build uses a native toolchain: cxx-build | Apache-2.0 |
|
Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/ |
34,017 binary downloads per release | Not applicable | 35,478 | Not measured | Not measured | Apache-2.0 | |
|
Postgres extension for vector search (DiskANN), complements pgvector for performance and scale. Postgres OSS licensed. |
33,328 binary downloads per release | Not applicable | 3,161 | Not measured | Not measured | PostgreSQL | |
|
faiss-rs Listed
High-level bindings for Faiss, the vector similarity search engine |
19,449 downloads over 30 days | 5 | 250 | 0.13.0 | GPU support unknown | Binds native code: faiss-sys, faiss_c. Build uses a native toolchain: cmake (feature static) | Apache-2.0 OR MIT |
|
splintr Listed
Tokenizer for Rust and Python: pure Rust by default, with 18 bundled vocabularies and four backends covering BPE, SentencePiece and WordPiece. Its output matches Hugging Face tokenizers id for id on 14 model families, including GPT-2, Qwen, Whisper, T5 and BERT. Python bindings |
8,204 downloads over 30 days | 7 | 63 | 0.22.2 | GPU support unknown | Binds native code: pcre2-sys (feature pcre2) | MIT |
|
chromadb-rs Archived
A Rust client library for the ChromaDB vector database. |
3,548 downloads over 30 days | 7 | 46 | 2.3.0 | GPU support unknown | No native code found | MIT |
Why FeaturedIt passes every Featured gate.
What it meets
- It has 65 active dependents and 57 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days.
- Active dependents are at 100% of their peak. Featured needs at least 50%.
- Docs are present. The release commit or a manifest ties the crate to the repository.
- No vulnerability advisory stays unpatched past the grace window. At least one version is neither a prerelease nor 0.0.x.
- The last activity is on 22 Oct 2026, 18 days ago. The rules expect an update within 800 days. Dormancy rule
Exact rules: Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 1.20.0 base 200, doubled for 1550266 downloads per month, doubled for 64.67 active users: E = 800 daysdormancy: last activity 2026-10-22, 18 days ago, E = 800: activefeatured: featured: active_users 64.67, new_adopters 57, former_glory 1
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption65 active dependents, 57 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 64.6667 | crates.io database dump | Yes | |
| New dependents (365 days) | 57 | crates.io database dump | Yes | |
| Peak active dependents | 64.6667 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 18 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-10-22 | GitHub repository | Yes | |
| Latest release | 2026-10-22 | crates.io database dump | Yes | |
| First release | 2022-06-24 | crates.io database dump | Yes | |
| Latest version | 1.20.0 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 1216 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 9 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution54 releases, 1,550,266 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 54 | crates.io database dump | Yes | |
| Downloads over 30 days | 1550266 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository418 stars, 85 forks, 28 contributors, 399 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 418 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 85 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 28 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 399 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 114 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.