pub struct QdrantStore { /* private fields */ }Expand description
Qdrant vector store adapter.
Implementations§
Source§impl QdrantStore
impl QdrantStore
Sourcepub fn new(
endpoint: impl Into<String>,
collection_name: impl Into<String>,
vector_size: usize,
) -> Self
pub fn new( endpoint: impl Into<String>, collection_name: impl Into<String>, vector_size: usize, ) -> Self
Create a new Qdrant adapter in stub mode.
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 (Qdrant Cloud).
Sourcepub fn collection_name(&self) -> &str
pub fn collection_name(&self) -> &str
Return the configured collection name.
Sourcepub fn vector_size(&self) -> usize
pub fn vector_size(&self) -> usize
Return the configured vector size.
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 QdrantStore
impl VectorStore for QdrantStore
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 QdrantStore
impl !RefUnwindSafe for QdrantStore
impl Send for QdrantStore
impl Sync for QdrantStore
impl Unpin for QdrantStore
impl UnsafeUnpin for QdrantStore
impl !UnwindSafe for QdrantStore
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