pub struct VectorParamsBuilder { /* private fields */ }
Expand description
Builder for VectorParams
.
Implementations§
source§impl VectorParamsBuilder
impl VectorParamsBuilder
sourcepub fn distance<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn distance<VALUE: Into<i32>>(self, value: VALUE) -> Self
Distance function used for comparing vectors
sourcepub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
pub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
Configuration of vector HNSW graph. If omitted - the collection configuration will be used
sourcepub fn quantization_config<VALUE: Into<Quantization>>(
self,
value: VALUE,
) -> Self
pub fn quantization_config<VALUE: Into<Quantization>>( self, value: VALUE, ) -> Self
Configuration of vector quantization config. If omitted - the collection configuration will be used
sourcepub fn on_disk(self, value: bool) -> Self
pub fn on_disk(self, value: bool) -> Self
If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
sourcepub fn multivector_config<VALUE: Into<MultiVectorConfig>>(
self,
value: VALUE,
) -> Self
pub fn multivector_config<VALUE: Into<MultiVectorConfig>>( self, value: VALUE, ) -> Self
Configuration for multi-vector search
source§impl VectorParamsBuilder
impl VectorParamsBuilder
sourcepub fn build(self) -> VectorParams
pub fn build(self) -> VectorParams
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<VectorParamsBuilder> for Config
impl From<VectorParamsBuilder> for Config
source§fn from(value: VectorParamsBuilder) -> Self
fn from(value: VectorParamsBuilder) -> Self
Converts to this type from the input type.
source§impl From<VectorParamsBuilder> for VectorParams
impl From<VectorParamsBuilder> for VectorParams
source§fn from(value: VectorParamsBuilder) -> Self
fn from(value: VectorParamsBuilder) -> Self
Converts to this type from the input type.
source§impl From<VectorParamsBuilder> for VectorsConfig
impl From<VectorParamsBuilder> for VectorsConfig
source§fn from(builder: VectorParamsBuilder) -> Self
fn from(builder: VectorParamsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VectorParamsBuilder
impl RefUnwindSafe for VectorParamsBuilder
impl Send for VectorParamsBuilder
impl Sync for VectorParamsBuilder
impl Unpin for VectorParamsBuilder
impl UnwindSafe for VectorParamsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request