Skip to main content

Module serverless

Module serverless 

Source
Expand description

Client for Qdrant Serverless (in development — do not use yet) Client for Qdrant Serverless.

In development — do not use yet. This API is experimental and unstable; it may change without notice and is not ready for production or general use.

Point-level operations (query, upsert, …) behave like the regular client; collection management uses the simplified, tenant-facing serverless API.

§Example

use qdrant_client::serverless::{
    CollectionConfig, DenseVectorConfig, Distance, QdrantServerless,
};

let client = QdrantServerless::from_url("https://serverless.example.cloud.qdrant.io")
    .api_key("<your api key>")
    .build()?;

client
    .create_collection(
        "my-collection",
        CollectionConfig::new()
            .dense_vector(DenseVectorConfig::new(1536, Distance::Cosine)),
    )
    .await?;

Re-exports§

pub use models::BoolIndex;
pub use models::CollectionConfig;
pub use models::CollectionInfo;
pub use models::CollectionSummary;
pub use models::CollectionsList;
pub use models::CreateCollectionResult;
pub use models::DatetimeIndex;
pub use models::DeleteCollectionResult;
pub use models::DenseVectorConfig;
pub use models::Distance;
pub use models::FloatIndex;
pub use models::GeoIndex;
pub use models::IntegerIndex;
pub use models::KeywordIndex;
pub use models::KeywordPrefixParams;
pub use models::ListCollections;
pub use models::ListCollectionsBuilder;
pub use models::PayloadIndex;
pub use models::PrecisionTier;
pub use models::SnowballParams;
pub use models::SparseVectorConfig;
pub use models::StemmingAlgorithm;
pub use models::StopwordsSet;
pub use models::TextIndex;
pub use models::Tokenizer;
pub use models::UuidIndex;

Modules§

models
Public models for the Qdrant Serverless collection management API.

Structs§

QdrantServerless
Entry point to a Qdrant Serverless space.
QdrantServerlessBuilder
Builder for QdrantServerless.

Constants§

DEFAULT_SERVERLESS_GRPC_PORT
Default gRPC port for serverless when the URL omits an explicit port.