pub struct DenseVectorCreationConfigBuilder { /* private fields */ }Expand description
Dense vector creation parameters. Only includes immutable properties that define the vector space. Storage type, index, and quantization are configured separately.
Implementations§
Source§impl DenseVectorCreationConfigBuilder
impl DenseVectorCreationConfigBuilder
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 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 (e.g., ColBERT)
Source§impl DenseVectorCreationConfigBuilder
impl DenseVectorCreationConfigBuilder
Sourcepub fn build(self) -> DenseVectorCreationConfig
pub fn build(self) -> DenseVectorCreationConfig
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for DenseVectorCreationConfigBuilder
impl Clone for DenseVectorCreationConfigBuilder
Source§fn clone(&self) -> DenseVectorCreationConfigBuilder
fn clone(&self) -> DenseVectorCreationConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<DenseVectorCreationConfigBuilder> for DenseVectorCreationConfig
impl From<DenseVectorCreationConfigBuilder> for DenseVectorCreationConfig
Source§fn from(value: DenseVectorCreationConfigBuilder) -> Self
fn from(value: DenseVectorCreationConfigBuilder) -> Self
Converts to this type from the input type.
Source§impl From<DenseVectorCreationConfigBuilder> for VectorConfig
impl From<DenseVectorCreationConfigBuilder> for VectorConfig
Source§fn from(value: DenseVectorCreationConfigBuilder) -> Self
fn from(value: DenseVectorCreationConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DenseVectorCreationConfigBuilder
impl RefUnwindSafe for DenseVectorCreationConfigBuilder
impl Send for DenseVectorCreationConfigBuilder
impl Sync for DenseVectorCreationConfigBuilder
impl Unpin for DenseVectorCreationConfigBuilder
impl UnsafeUnpin for DenseVectorCreationConfigBuilder
impl UnwindSafe for DenseVectorCreationConfigBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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