Skip to main content

qdrant_client/serverless/
mod.rs

1//! Client for Qdrant Serverless.
2//!
3//! **In development — do not use yet.** This API is experimental and unstable;
4//! it may change without notice and is not ready for production or general use.
5//!
6//! Point-level operations (query, upsert, ...) behave like the regular client;
7//! collection management uses the simplified, tenant-facing serverless API.
8//!
9//! # Example
10//!
11//! ```no_run
12//! use qdrant_client::serverless::{
13//!     CollectionConfig, DenseVectorConfig, Distance, QdrantServerless,
14//! };
15//!
16//! # async fn run() -> Result<(), qdrant_client::QdrantError> {
17//! let client = QdrantServerless::from_url("https://serverless.example.cloud.qdrant.io")
18//!     .api_key("<your api key>")
19//!     .build()?;
20//!
21//! client
22//!     .create_collection(
23//!         "my-collection",
24//!         CollectionConfig::new()
25//!             .dense_vector(DenseVectorConfig::new(1536, Distance::Cosine)),
26//!     )
27//!     .await?;
28//! # Ok(())
29//! # }
30//! ```
31
32mod client;
33mod conversions;
34#[allow(clippy::all)]
35#[rustfmt::skip]
36pub(crate) mod grpc;
37pub mod models;
38
39pub use client::{QdrantServerless, QdrantServerlessBuilder, DEFAULT_SERVERLESS_GRPC_PORT};
40pub use models::{
41    BoolIndex, CollectionConfig, CollectionInfo, CollectionSummary, CollectionsList,
42    CreateCollectionResult, DatetimeIndex, DeleteCollectionResult, DenseVectorConfig, Distance,
43    FloatIndex, GeoIndex, IntegerIndex, KeywordIndex, KeywordPrefixParams, ListCollections,
44    ListCollectionsBuilder, PayloadIndex, PrecisionTier, SnowballParams, SparseVectorConfig,
45    StemmingAlgorithm, StopwordsSet, TextIndex, Tokenizer, UuidIndex,
46};