pub struct S3VectorsVectorStore<M> { /* private fields */ }Implementations§
Source§impl<M> S3VectorsVectorStore<M>where
M: EmbeddingModel,
impl<M> S3VectorsVectorStore<M>where
M: EmbeddingModel,
pub fn new( embedding_model: M, client: Client, bucket_name: &str, index_name: &str, ) -> Self
pub fn bucket_name(&self) -> &str
pub fn set_bucket_name(&mut self, bucket_name: &str)
pub fn index_name(&self) -> &str
pub fn set_index_name(&mut self, index_name: &str)
pub fn client(&self) -> &Client
Trait Implementations§
Source§impl<M> InsertDocuments for S3VectorsVectorStore<M>where
M: EmbeddingModel,
impl<M> InsertDocuments for S3VectorsVectorStore<M>where
M: EmbeddingModel,
Source§impl<M> VectorStoreIndex for S3VectorsVectorStore<M>where
M: EmbeddingModel,
impl<M> VectorStoreIndex for S3VectorsVectorStore<M>where
M: EmbeddingModel,
type Filter = S3SearchFilter
Source§async fn top_n<T: for<'a> Deserialize<'a> + Send>(
&self,
req: VectorSearchRequest<S3SearchFilter>,
) -> Result<Vec<(f64, String, T)>, VectorStoreError>
async fn top_n<T: for<'a> Deserialize<'a> + Send>( &self, req: VectorSearchRequest<S3SearchFilter>, ) -> Result<Vec<(f64, String, T)>, VectorStoreError>
Get the top n documents based on the distance to the given query.
The result is a list of tuples of the form (score, id, document)
Source§async fn top_n_ids(
&self,
req: VectorSearchRequest<S3SearchFilter>,
) -> Result<Vec<(f64, String)>, VectorStoreError>
async fn top_n_ids( &self, req: VectorSearchRequest<S3SearchFilter>, ) -> Result<Vec<(f64, String)>, VectorStoreError>
Same as
top_n but returns the document ids only.Auto Trait Implementations§
impl<M> Freeze for S3VectorsVectorStore<M>where
M: Freeze,
impl<M> !RefUnwindSafe for S3VectorsVectorStore<M>
impl<M> Send for S3VectorsVectorStore<M>where
M: Send,
impl<M> Sync for S3VectorsVectorStore<M>where
M: Sync,
impl<M> Unpin for S3VectorsVectorStore<M>where
M: Unpin,
impl<M> !UnwindSafe for S3VectorsVectorStore<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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.