Struct langchain_rust::vectorstore::pgvector::StoreBuilder
source · pub struct StoreBuilder { /* private fields */ }
Implementations§
source§impl StoreBuilder
impl StoreBuilder
pub fn new() -> Self
pub fn pool(self, pool: Pool<Postgres>) -> Self
pub fn embedder<E: Embedder + 'static>(self, embedder: E) -> Self
pub fn connection_url(self, connection_url: &str) -> Self
pub fn vector_dimensions(self, vector_dimensions: i32) -> Self
pub fn pre_delete_collection(self, pre_delete_collection: bool) -> Self
pub fn embedder_table_name(self, embedder_table_name: &str) -> Self
pub fn collection_name(self, collection_name: &str) -> Self
pub fn collection_table_name(self, collection_table_name: &str) -> Self
pub fn vstore_options(self, vstore_options: VecStoreOptions) -> Self
pub fn hns_index(self, hns_index: HNSWIndex) -> Self
pub async fn build(self) -> Result<Store, Box<dyn Error>>
pub async fn create_vector_extension_if_not_exists( &self, tx: &mut Transaction<'_, Postgres> ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl !RefUnwindSafe for StoreBuilder
impl Send for StoreBuilder
impl Sync for StoreBuilder
impl Unpin for StoreBuilder
impl !UnwindSafe for StoreBuilder
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