qdrant_client::qdrant

Struct CreateCollectionBuilder

Source
pub struct CreateCollectionBuilder { /* private fields */ }

Implementations§

Source§

impl CreateCollectionBuilder

Source

pub fn new(collection_name: impl Into<String>) -> Self

Source§

impl CreateCollectionBuilder

Source

pub fn collection_name<VALUE: Into<String>>(self, value: VALUE) -> Self

Name of the collection

Source

pub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self

Configuration of vector index

Source

pub fn wal_config<VALUE: Into<WalConfigDiff>>(self, value: VALUE) -> Self

Configuration of the Write-Ahead-Log

Source

pub fn optimizers_config<VALUE: Into<OptimizersConfigDiff>>( self, value: VALUE, ) -> Self

Configuration of the optimizers

Source

pub fn shard_number(self, value: u32) -> Self

Number of shards in the collection, default is 1 for standalone, otherwise equal to the number of nodes. Minimum is 1

Source

pub fn on_disk_payload(self, value: bool) -> Self

If true - point’s payload will not be stored in memory

Source

pub fn timeout(self, value: u64) -> Self

Wait timeout for operation commit in seconds, if not specified - default value will be supplied

Source

pub fn vectors_config<VALUE: Into<VectorsConfig>>(self, value: VALUE) -> Self

Configuration for vectors

Source

pub fn replication_factor(self, value: u32) -> Self

Number of replicas of each shard that network tries to maintain, default = 1

Source

pub fn write_consistency_factor(self, value: u32) -> Self

How many replicas should apply the operation for us to consider it successful, default = 1

Source

pub fn init_from_collection<VALUE: Into<String>>(self, value: VALUE) -> Self

Specify name of the other collection to copy data from

Source

pub fn quantization_config<VALUE: Into<Quantization>>( self, value: VALUE, ) -> Self

Quantization configuration of vector

Source

pub fn sharding_method(self, value: i32) -> Self

Sharding method

Source

pub fn sparse_vectors_config<VALUE: Into<SparseVectorConfig>>( self, value: VALUE, ) -> Self

Configuration for sparse vectors

Source

pub fn strict_mode_config<VALUE: Into<StrictModeConfig>>( self, value: VALUE, ) -> Self

Configuration for strict mode

Source§

impl CreateCollectionBuilder

Source

pub fn build(self) -> CreateCollection

Builds the desired type. Can often be omitted.

Trait Implementations§

Source§

impl Debug for CreateCollectionBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CreateCollectionBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<CreateCollectionBuilder> for CreateCollection

Source§

fn from(value: CreateCollectionBuilder) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T