pub struct Milvus<E, M>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<E, M> VectorStore<E, M> for Milvus<E, M>
impl<E, M> VectorStore<E, M> for Milvus<E, M>
type Error = MilvusError<<E as Embeddings>::Error>
fn add_texts<'life0, 'async_trait>(
&'life0 self,
texts: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_documents<'life0, 'async_trait>(
&'life0 self,
documents: Vec<Document<M>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn similarity_search<'life0, 'async_trait>(
&'life0 self,
query: String,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Document<M>>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<E, M> Freeze for Milvus<E, M>where
E: Freeze,
impl<E, M> !RefUnwindSafe for Milvus<E, M>
impl<E, M> Send for Milvus<E, M>where
E: Send,
impl<E, M> Sync for Milvus<E, M>where
E: Sync,
impl<E, M> Unpin for Milvus<E, M>
impl<E, M> !UnwindSafe for Milvus<E, M>
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