#[non_exhaustive]pub struct MemoryQdrant {
pub long_term: Arc<dyn LongTermMemory>,
pub qdrant_long_term: Arc<QdrantLongTerm>,
}Expand description
Factory bundle returned by MemoryQdrant::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.long_term: Arc<dyn LongTermMemory>LongTermMemory implementation backed by Qdrant.
qdrant_long_term: Arc<QdrantLongTerm>Concrete QdrantLongTerm handle. The M2 GraphRAG composer
needs the concrete type to call recall_filtered_checked —
FilterableLongTermMemory lives in klieo-memory-graph (0.x)
so it cannot be smuggled into the LongTermMemory trait
object. Both fields point to the same QdrantLongTerm.
Implementations§
Source§impl MemoryQdrant
impl MemoryQdrant
Sourcepub async fn connect(url: impl Into<String>) -> Result<Self, MemoryError>
pub async fn connect(url: impl Into<String>) -> Result<Self, MemoryError>
Capability-shaped default — connect to a Qdrant endpoint URL
with DummyEmbedder (zero-vector, FIFO recall) and default
QdrantConfig (collection prefix "klieo_facts", plaintext
remote refused, embedder id "default").
Use Self::new when you need a real embedder or non-default
QdrantConfig (API key, custom prefix, opt-in plaintext for
sealed mesh deployments, custom embedder id).
Sourcepub async fn new(
cfg: QdrantConfig,
embedder: Arc<dyn Embedder>,
) -> Result<Self, MemoryError>
pub async fn new( cfg: QdrantConfig, embedder: Arc<dyn Embedder>, ) -> Result<Self, MemoryError>
Connect to Qdrant and return a ready-to-use handle.
The collection is not created upfront; it is bootstrapped
lazily on the first remember() call. This avoids races when
multiple processes concurrently start before any fact is
written.
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryQdrant
impl !UnwindSafe for MemoryQdrant
impl Freeze for MemoryQdrant
impl Send for MemoryQdrant
impl Sync for MemoryQdrant
impl Unpin for MemoryQdrant
impl UnsafeUnpin for MemoryQdrant
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
T in a tonic::Request