pub struct WeaviateStore { /* private fields */ }Expand description
Weaviate vector store adapter.
Implementations§
Source§impl WeaviateStore
impl WeaviateStore
Sourcepub fn new(endpoint: impl Into<String>, class_name: impl Into<String>) -> Self
pub fn new(endpoint: impl Into<String>, class_name: impl Into<String>) -> Self
Create a new Weaviate adapter in stub mode (no API key).
Sourcepub fn with_api_key(self, key: impl Into<String>) -> Self
pub fn with_api_key(self, key: impl Into<String>) -> Self
Attach an API key (used for Weaviate Cloud / secured clusters).
Sourcepub fn class_name(&self) -> &str
pub fn class_name(&self) -> &str
Return the configured class name.
Sourcepub fn has_api_key(&self) -> bool
pub fn has_api_key(&self) -> bool
Return whether an API key is configured.
Trait Implementations§
Source§impl VectorStore for WeaviateStore
impl VectorStore for WeaviateStore
Source§fn insert<'life0, 'async_trait>(
&'life0 self,
entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = ArgentorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
entry: MemoryEntry,
) -> Pin<Box<dyn Future<Output = ArgentorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Insert a memory entry.
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query_embedding: &'life1 [f32],
top_k: usize,
session_filter: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = ArgentorResult<Vec<SearchResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query_embedding: &'life1 [f32],
top_k: usize,
session_filter: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = ArgentorResult<Vec<SearchResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search for the top-k most similar entries to a query embedding.
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = ArgentorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = ArgentorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a memory entry by ID.
Auto Trait Implementations§
impl !Freeze for WeaviateStore
impl !RefUnwindSafe for WeaviateStore
impl Send for WeaviateStore
impl Sync for WeaviateStore
impl Unpin for WeaviateStore
impl UnsafeUnpin for WeaviateStore
impl !UnwindSafe for WeaviateStore
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